private static final String UNEXPECTED_METHOD = "GET";
private static final String EXPECTED_METHOD = "POST";
@Test
public void matchesReturnsFalseIfExpectedMethodNameDoesNotEqualMethodOfRequest() {
DummyFakeRequest requestWithUnexpectedMethod = newRequest().withMethod(UNEXPECTED_METHOD);
boolean result = headMatcher(EXPECTED_METHOD).matches(requestWithUnexpectedMethod);
assertThat(result, is(false));
}