First modify test to java file