Try to fix another unit test that fails on Oracle JDK 7