Learning Java 8 by writing unit tests