public void testBufferedHeader() throws Exception {
String s =
"header1 : stuff; param1 = value1; param2 = \"value 2\" \r\n" +
"\r\n";
SessionInputBuffer receiver = new SessionInputBufferMockup(s, "US-ASCII");
Header[] headers = AbstractMessageParser.parseHeaders
(receiver, -1, -1, null);
assertNotNull(headers);
assertEquals(1, headers.length);
assertEquals("header1 : stuff; param1 = value1; param2 = \"value 2\" ", headers[0].toString());