Fixed broken test.
Fixes compile errors under Java 8. (#25)