// Test oneway
long startOneway = System.nanoTime();
testClient.testOneway(3);
long onewayElapsedMillis = (System.nanoTime() - startOneway) / 1000000;
if (onewayElapsedMillis > 200) {
throw new TException("Oneway test failed: took " +
Long.toString(onewayElapsedMillis) +
"ms");
}
// Just do some basic testing that the event handler is called.