JUnit tests for JAVA client