@Test
public void testParseHEEscaped() {

    final String headerValue =
      "test1 =  \"\\\"stuff\\\"\", test2= \"\\\\\", test3 = \"stuff, stuff\"";
    final CharArrayBuffer buf = new CharArrayBuffer(64);
    buf.append(headerValue);
    final ParserCursor cursor = new ParserCursor(0, buf.length());
    final HeaderElement[] elements = this.parser.parseElements(buf, cursor);
    Assert.assertEquals(3, elements.length);
    Assert.assertEquals("test1", elements[0].getName());
    Assert.assertEquals("\"stuff\"", elements[0].getValue());
    Assert.assertEquals("test2", elements[1].getName());
    Assert.assertEquals("\\", elements[1].getValue());
    Assert.assertEquals("test3", elements[2].getName());
    Assert.assertEquals("stuff, stuff", elements[2].getValue());
}