Add test support for Java.