Structure preserving discretizations of the liouville equation and their numerical tests