Make JDK dependant test not depend anymore on JDK