t.start();
// We need to wait for a second to make sure the server thread starts.
synchronized (readyToAccept) {
if (!readyToAccept.get()) {
readyToAccept.wait(4000);
}
}
assertTrue("Not ready to accept?", readyToAccept.get());
Thread.yield();
Thread.yield();