@Test
public void oneHeaderElementTest() {

  final String name = "Content-type";
  final String value = "application/json";
  final String headers =
      name + JobCallbackConstants.HEADER_NAME_VALUE_DELIMITER + value;
  Header[] headerArr = JobCallbackUtil.parseHttpHeaders(headers);
  Assert.assertNotNull(headerArr);
  Assert.assertEquals(1, headerArr.length);
  Assert.assertEquals(name, headerArr[0].getName());
  Assert.assertEquals(value, headerArr[0].getValue());
  final String headersWithExtraDelimiter =
      name + JobCallbackConstants.HEADER_NAME_VALUE_DELIMITER + value
          + JobCallbackConstants.HEADER_ELEMENT_DELIMITER;
  headerArr = JobCallbackUtil.parseHttpHeaders(headersWithExtraDelimiter);
  Assert.assertNotNull(headerArr);
  Assert.assertEquals(1, headerArr.length);
  Assert.assertEquals(name, headerArr[0].getName());
  Assert.assertEquals(value, headerArr[0].getValue());
}