Header[] mockedHeaders = new Header[] { new BasicHeader("myheader", "myValue") };
when(mockResponse.getAllHeaders()).thenReturn(mockedHeaders);
Response response = new DefaultResponse(mockResponse, 12345);
com.github.restdriver.serverdriver.http.Header expectedHeader =
new com.github.restdriver.serverdriver.http.Header("myheader", "myValue");
assertThat(response.getHeader("myheader"), equalTo(expectedHeader));
assertThat(response.getHeaders("myheader").size(), equalTo(1));
}