assertEquals(date_RFC1123, date_formatted);
}
@Test
public void testParameterizedHeader() throws ParseException {
ParameterizedHeader ph = new ParameterizedHeader("a");
assertEquals("a", ph.getValue());
ph = new ParameterizedHeader("a/b");
assertEquals("a/b", ph.getValue());
ph = new ParameterizedHeader(" a / b ");
assertEquals("a/b", ph.getValue());
ph = new ParameterizedHeader("");
assertEquals("", ph.getValue());
ph = new ParameterizedHeader(";");
assertEquals("", ph.getValue());
assertEquals(0, ph.getParameters().size());
ph = new ParameterizedHeader(";;;");
assertEquals("", ph.getValue());
assertEquals(0, ph.getParameters().size());
ph = new ParameterizedHeader(" ; ; ; ");
assertEquals("", ph.getValue());
assertEquals(0, ph.getParameters().size());
ph = new ParameterizedHeader("a;x=1;y=2");
assertEquals("a", ph.getValue());
assertEquals(2, ph.getParameters().size());
assertEquals("1", ph.getParameters().get("x"));
assertEquals("2", ph.getParameters().get("y"));
ph = new ParameterizedHeader("a ; x=1 ; y=2 ");
assertEquals("a", ph.getValue());
assertEquals(2, ph.getParameters().size());
assertEquals("1", ph.getParameters().get("x"));
assertEquals("2", ph.getParameters().get("y"));
}