@Test public void testArray() { System.out.println( "-----------------------------------" + tcpRestServer.getClass().getCanonicalName() + "--------------------------------"); tcpRestServer.addSingletonResource(new HelloWorldResource()); HelloWorld client = (HelloWorld) Proxy.newProxyInstance( HelloWorld.class.getClassLoader(), new Class[] {HelloWorld.class}, new TcpRestClientProxy( HelloWorld.class.getCanonicalName(), "localhost", tcpRestServer.getServerPort())); String[] in = new String[] {"a", "b", "c"}; String[] out = client.getArray(in); for (int i = 0; i < in.length; i++) { assertEquals(in[i], out[i]); } }