Assert.assertTrue(header.indexOf("200") != -1);
Assert.assertTrue(header.indexOf("Connection: close") != -1);
Assert.assertEquals("<html>this ...", con.readStringByLength(14));
try {
con.readByte();
Assert.fail("ClosedChannelException expected");
} catch (ClosedChannelException expected) { }
oldServer.close();