// make sure we get the right answer with newly connected socket
assertFalse("Socket indicated output shutdown when it should not have",
servSock.isOutputShutdown());
// shutdown the output
servSock.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",
servSock.isOutputShutdown());