@Test
public void testHeaderParse() throws Exception {

    final CharArrayBuffer buf = new CharArrayBuffer(64);
    //typical request line
    buf.clear();
    buf.append("header: blah");
    Header header = this.parser.parseHeader(buf);
    Assert.assertEquals("header", header.getName());
    Assert.assertEquals("blah", header.getValue());
    //Lots of blanks
    buf.clear();
    buf.append("    header:    blah    ");
    header = this.parser.parseHeader(buf);
    Assert.assertEquals("header", header.getName());
    Assert.assertEquals("blah", header.getValue());
}