`assertEquals(oneLiners, multiLiners)` should be enough because it should do comparisons on the elements - [source](http://docs.oracle.com/javase/7/docs/api/java/util/List.html#equals(java.lang.Object)) if the implementation of the list you uses follows the contract at least :P