@Test
public void testHeadersNull() {

    RESTWorkItemHandler handler = new RESTWorkItemHandler();
    String headerKey = "headerKey";
    
    WorkItemImpl workItem = new WorkItemImpl();
    workItem.setParameter("Url",
                          serverURL + "/header/" + headerKey);
    workItem.setParameter("Method",
                          "GET");
    workItem.setParameter(PARAM_HEADERS, headerKey + "=");
    
    WorkItemManager manager = new TestWorkItemManager();
    handler.executeWorkItem(workItem,
                            manager);
    Map<String, Object> results = ((TestWorkItemManager) manager).getResults(workItem.getId());
    String result = (String) results.get(PARAM_RESULT);
    assertTrue(result.trim().isEmpty());
}