Java8 Unit test failure workaround.