add java test case