Fix for java 7 unit test.