assertEquals("Hey There", r);
}
@Test
public void testLocal() throws Exception {
final Session s = TransportRegistry.i().createSession("http://localhost:8080/java-client");
final Client c = new Client(s);
final Object px = c.openProxy("", EchoTest.class);
final Object r = c.invoke(px, EchoTest.class.getMethod("echo", String.class, String.class), new Object[] {"Hey", "There"});
c.closeProxy(px);
s.close();
assertEquals("Hey There", r);
}