@Test
public void testHeadersMultipleHeaders() {

    RESTWorkItemHandler handler = new RESTWorkItemHandler();
    String headerKey1 = "headerKey";
    String headerValues1 = "headerValue,headerValue2,headerValue3";
    String headerKey2 = "headerKey2";
    String headerValues2 = "headerValue2,headerValue22,headerValue23";
    String headers = headerKey1 + "=" + headerValues1 + ";" 
                       + headerKey2 + "=" + headerValues2;
       
    WorkItemImpl workItem = new WorkItemImpl();
    workItem.setParameter("Url",
                            serverURL + "/header/" + headerKey1);
    workItem.setParameter("Method",
                            "GET");
    workItem.setParameter(PARAM_HEADERS, headers);
    WorkItemManager manager = new TestWorkItemManager();
    handler.executeWorkItem(workItem,
                              manager);
    
    Map<String, Object> results = ((TestWorkItemManager) manager).getResults(workItem.getId());
    String result = (String) results.get(PARAM_RESULT);
    assertEquals(result, headerValues1);
    workItem.setParameter("Url",
                            serverURL + "/header/" + headerKey2);
    workItem.setParameter("Method",
                    "GET");
    workItem.setParameter(PARAM_HEADERS, headers);
    handler.executeWorkItem(workItem,
                      manager);
    results = ((TestWorkItemManager) manager).getResults(workItem.getId());
    result = (String) results.get(PARAM_RESULT);
    assertEquals(result, headerValues2);
}