@Test
public void headersWithSpecialNames() throws Exception {

  final Header header = BatchParserCommon.consumeHeaders(toLineList(
      "Test0123456789: 42" + CRLF,
      "a_b: c/d" + CRLF,
      "!#$%&'*+-.^_`|~: weird" + CRLF));
  assertNotNull(header);
  assertTrue(header.exists("Test0123456789"));
  assertTrue(header.exists("a_b"));
  assertTrue(header.exists("!#$%&'*+-.^_`|~"));
  assertEquals("weird", header.getHeader("!#$%&'*+-.^_`|~"));
}