Fixed TestUtils to work with Java 1.6