try
{
POJO pojo = (POJO) getInitialContext().lookup("pojo");
AsynchProvider asynch = (AsynchProvider) pojo;
pojo.testMethod(5);
Future future = asynch.getFuture();
int rtn = ((Integer) future.get()).intValue();
assertEquals(rtn, 5);
pojo.testMethod("hello");
future = asynch.getFuture();
String srtn = (String) future.get();
assertEquals("hello", srtn);
}
catch (Exception e)
{
throw new RuntimeException(e);
}