@Test
public void shouldMatchHeaderWithMultipleValues() {
ignoringNotifier();
RequestPattern requestPattern1 = new RequestPattern(RequestMethod.GET,
"/multi/header",
ImmutableMap.of("X-Multi", equalTo("one")));
RequestPattern requestPattern2 = new RequestPattern(RequestMethod.GET,
"/multi/header",
ImmutableMap.of("X-Multi", equalTo("two")));
Request request = aRequest(context)
.withUrl("/multi/header")
.withMethod(GET)
.withHeader("X-Multi", "one")
.withHeader("X-Multi", "two")
.build();
assertTrue("Request should match request pattern with header X-Multi:one", requestPattern1.isMatchedBy(request));
assertTrue("Request should match request pattern with header X-Multi:two", requestPattern2.isMatchedBy(request));
}