Do some tests about java8 new feature