Add java test.