Original blog post: http://akorsa.ru/2016/12/ispolzuem-tdd-v-java-8-stream/
Learning Java 8 Streaming through Test-Driven development
Convert elements of a collection to upper case.
Filter collection so that only elements with less then 4 characters are returned.
Flatten multidimensional collection
OldestPerson (max, comparator)
Get oldest person from the collection
Sum all elements of a collection
Kids (filter, map)
Get names of all kids (under age of 18)
Get people statistics: average age, count, maximum age, minimum age and sum og all ages.
Partition adults and kids
Group people by nationality