test comm on java code