IBlockingConnection con = new BlockingConnection("localhost", server.getLocalPort());
con.write("GET /\r\n");
String header = con.readStringByDelimiter("\r\n\r\n") + "\r\n";
int contentLength = QAUtil.readContentLength(header);
String body = con.readStringByLength(contentLength);
Assert.assertTrue(header.indexOf("400") != -1);
Assert.assertTrue(body.indexOf("simple request messages are not supported") != -1);
con.close();