Fixed test making use of Java 6 artifacts (non-java 5 compatible)