add the test java code