Test for Java 7