added testclass for Java Client