@Test
  public void testProxy() throws Exception {
    System.out.println(
        "-----------------------------------"
            + tcpRestServer.getClass().getCanonicalName()
            + "--------------------------------");

    tcpRestServer.addResource(HelloWorldResource.class);

    HelloWorld client =
        (HelloWorld)
            Proxy.newProxyInstance(
                HelloWorld.class.getClassLoader(),
                new Class[] {HelloWorld.class},
                new TcpRestClientProxy(
                    HelloWorld.class.getCanonicalName(),
                    "localhost",
                    tcpRestServer.getServerPort()));

    assertEquals("Hello, world!", client.helloWorld());
    assertEquals("x,2,false", client.oneTwoThree("x", 2, false));
  }