testing java 1.8 new features with dates and lambda expression using collections streams