test for Java