GenericHeader extends AbstractClauseBasedHeader<GenericHeader.Clause> { @Override public String getValue() { return toString(); } GenericHeader(String name, Collection<Clause> clauses);  GenericHeader(String name, String value); @Override String getName(); @Override String getValue();  }
@Test public void testEmptyHeader() { try { GenericHeader header = new GenericHeader("Foo-Bar", ""); assertEquals( "Empty headers are treated the same as those with an empty quoted string", "\"\"", header.getValue()); assertEquals("Empty headers should have one clause", 1, header.getClauses().size()); } catch (Exception e) { fail("Empty headers are allowed"); } }