@Test public void headerMatchingIsCaseInsensitive() { LoggedRequest loggedRequest = createFrom( aRequest(context) .withUrl("/for/logging") .withMethod(POST) .withBody("Actual Content") .withHeader("Content-Type", "text/plain") .withHeader("ACCEPT", "application/json") .build()); assertTrue(loggedRequest.containsHeader("content-type")); assertNotNull(loggedRequest.getHeader("content-type")); assertTrue(loggedRequest.containsHeader("CONTENT-TYPE")); assertNotNull(loggedRequest.getHeader("CONTENT-TYPE")); assertTrue(loggedRequest.containsHeader("Accept")); assertNotNull(loggedRequest.getHeader("Accept")); }