JAVA tests