Much more beautiful unit test thanks to Java 8