test java code