@Test
public void multipleHeaderElementTest() {

  final String name1 = "Content-type";
  final String value1 = "application/json";
  final String name2 = "Accept";
  final String value2 = "application/xml";
  final String name3 = "User-Agent";
  final String value3 =
      "Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/21.0";
  String headers = makeHeaderElement(name1, value1);
  headers += JobCallbackConstants.HEADER_ELEMENT_DELIMITER;
  headers += makeHeaderElement(name2, value2);
  headers += JobCallbackConstants.HEADER_ELEMENT_DELIMITER;
  headers += makeHeaderElement(name3, value3);
  System.out.println("headers: " + headers);
  final Header[] headerArr = JobCallbackUtil.parseHttpHeaders(headers);
  Assert.assertNotNull(headerArr);
  Assert.assertEquals(3, headerArr.length);
  Assert.assertEquals(name1, headerArr[0].getName());
  Assert.assertEquals(value1, headerArr[0].getValue());
  Assert.assertEquals(name2, headerArr[1].getName());
  Assert.assertEquals(value2, headerArr[1].getValue());
  Assert.assertEquals(name3, headerArr[2].getName());
  Assert.assertEquals(value3, headerArr[2].getValue());
}