Add communication test for Java.