@Test
public void headersSeparatedByComma() throws Exception {

  final Header header = BatchParserCommon.consumeHeaders(toLineList(
      "Content-Id: 1" + CRLF,
      "Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11" + CRLF,
      "content-type: Application/http" + CRLF,
      "content-transfer-encoding: Binary" + CRLF));
  assertNotNull(header);
  final List<String> upgradeHeader = header.getHeaders("upgrade");
  assertNotNull(upgradeHeader);
  assertEquals(4, upgradeHeader.size());
  assertEquals("HTTP/2.0", upgradeHeader.get(0));
  assertEquals("SHTTP/1.3", upgradeHeader.get(1));
  assertEquals("IRC/6.9", upgradeHeader.get(2));
  assertEquals("RTA/x11", upgradeHeader.get(3));
}