HV-900 Documenting Java 8 support

We use to add the actual example code as runable test into the documentation module itself (see the test directory). This way we make sure that the code actually works.