a test case for java client