### Question:
RequestProtocolCompliance { private RequestProtocolError requestContainsNoCacheDirectiveWithFieldName(final HttpRequest request) { final Iterator<HeaderElement> it = MessageSupport.iterate(request, HeaderConstants.CACHE_CONTROL); while (it.hasNext()) { final HeaderElement elt = it.next(); if (HeaderConstants.CACHE_CONTROL_NO_CACHE.equalsIgnoreCase(elt.getName()) && elt.getValue() != null) { return RequestProtocolError.NO_CACHE_DIRECTIVE_WITH_FIELD_NAME; } } return null; } RequestProtocolCompliance();  RequestProtocolCompliance(final boolean weakETagOnPutDeleteAllowed); List<RequestProtocolError> requestIsFatallyNonCompliant(final HttpRequest request); void makeRequestCompliant(final HttpRequest request);  }### Answer:
@Test public void testRequestContainsNoCacheDirectiveWithFieldName() throws Exception { final HttpRequest req = new BasicHttpRequest("GET", "/"); req.setHeader("Cache-Control", "no-cache=false"); assertEquals(1, impl.requestIsFatallyNonCompliant(req).size()); }