Testing the new features in Java8