@Test
public void matcherShouldDescribeMismatchCorrectlyIfResponseHasHeaders() {
Response mockResponse = mock(Response.class);
when(mockResponse.getHeaders()).thenReturn(Arrays.asList(new Header("Header1: value"), new Header("Header2: value")));
Description description = new StringDescription();
matcher.describeMismatchSafely(mockResponse, description);
assertThat(description.toString(), is("Response has headers [Header1: value, Header2: value]"));
}