assertion("HTTP/1.1 204 No Content", "HTTP/1.1", 204, "No Content");
}
private void assertion(String source, String version, int statusCode, String reason) throws IOException {
byte[] line = source.getBytes();
StatusLine statusLine = parser.parse(line);
Assert.assertNotNull(statusLine);
Assert.assertEquals(statusLine.getVersion(), version);
Assert.assertEquals(statusLine.getStatusCode(), statusCode);
Assert.assertEquals(statusLine.getReason(), reason);
}