Response<GreetMeSometimeResponse> response = greeter.greetMeSometimeAsync("Joe");
while (!response.isDone()) {
Thread.sleep(100);
}
GreetMeSometimeResponse reply = response.get();
assertNotNull("no response received from service", reply);
String s = reply.getResponseType();
assertEquals(expectedString, s);
} catch (UndeclaredThrowableException ex) {
throw (Exception)ex.getCause();
}
executor.shutdown();