// make sure we get the right answer with newly connected socket
assertFalse("Socket indicated output shutdown when it should not have",
worker.isOutputShutdown());
// shutdown the output
worker.shutdownOutput();
// make sure we get the right answer once it is shut down
assertTrue(
"Socket indicated output was NOT shutdown when it should have been",
worker.isOutputShutdown());