cfg);
ThriftInterfaceExecutorService executorService = new ThriftInterfaceExecutorService(
cfg);
ThriftServer clientServer = new ThriftServer(clientProcessor,
executorService, new InetSocketAddress("127.0.0.1", 7979));
clientServer.start();
ThriftServer server = new ThriftServer(serverProcessor,
executorService, new InetSocketAddress("127.0.0.1", 19191));
server.start();
Client client = clientPool.acquireSync();
String message = "Test echo message";
String result = client.invokeJsonRpc(message);
Assert.assertEquals(message, result);
clientServer.destroy();
server.destroy();
}