private Long doRequest(PolicyTestRequest request) throws Throwable {
        PolicyTestResponse response = send(request);
        EchoResponse echo = response.entity(EchoResponse.class);
        assertNotNull(echo);
        Long counterValue = echo.getCounter();
        assertNotNull(counterValue);
        assertEquals("application/json", response.header("Content-Type"));
        return counterValue;
    }
Simulate a request
@param request
@return counterValue as result of the request
@throws Throwable
gateway/engine/policies/src/test/java/io/apiman/gateway/engine/policies/CachingResourcesPolicyTest.java