public abstract void testParser();
protected void testParser(Class parserClass, String[] headers) { try { for (int i = 0; i < headers.length; i++) { System.out.print(headers[i]); HeaderParser hp = createParser(parserClass, headers[i]); SIPHeader hdr = (SIPHeader) hp.parse(); hp = createParser(parserClass, hdr.encode().trim()+"\n"); System.out.println(hdr.encode()); assertEquals(hdr, hp.parse());  } } catch (java.text.ParseException ex) { ex.printStackTrace(); fail(getClass().getName()); } catch (Exception e) { e.printStackTrace(); fail("Unexpected exception " + getClass().getName()); System.exit(0); } }
	public abstract void testParser();