java client test code