@Test
public void parseChunkedWithTrailers() throws IOException {
Response response = parser.parse(new ByteArrayInputStream(chunkedWithTrailers));
Assert.assertNotNull(response);
StatusLine statusLine = response.getStatusLine();
Assert.assertNotNull(statusLine);
Assert.assertEquals(statusLine.getVersion(), HTTP.HTTP_1_1);
Assert.assertEquals(statusLine.getStatusCode(), 200);
Assert.assertEquals(statusLine.getReason(), "OK");
List<Header> headers = response.getHeaders();
Assert.assertNotNull(headers);
Assert.assertEquals(headers.size(), 3);
Assert.assertTrue(Headers.isChunked(headers));
Assert.assertEquals(Headers.getValueByName(headers, Headers.CONNECTION), "Keep-Alive");