Apply the Java grammar to the test Java code.