public void testCollocated() throws Exception
{
POJO pojo = (POJO) AsynchRemoting.createRemoteProxy("pojo", POJO.class, new InvokerLocator("socket://localhost:5150"));
AsynchProvider asynch = (AsynchProvider) pojo;
pojo.testMethod(5);
Future future = asynch.getFuture();
int rtn = ((Integer) future.get()).intValue();
if (rtn != 5) throw new RuntimeException("integer return value invalid");
pojo.testMethod("hello");
future = asynch.getFuture();
String srtn = (String) future.get();
if (!"hello".equals(srtn)) throw new RuntimeException("string return value failed");
}