@Override
        public PolicyTestBackEndApiResponse invoke(ApiRequest request, byte[] requestBody) {
            ApiResponse sresponse = new ApiResponse();
            sresponse.setMessage("OK");
            sresponse.setCode(200);
            sresponse.getHeaders().put("Location", "http://localhost:8080/path/to/api/specific-resource/action");
            sresponse.getHeaders().put("Content-Type", "application/json");
            sresponse.getHeaders().put("Cache", "no-cache");
            sresponse.getHeaders().put("X-Alt-Location", "http://localhost:8080/path/to/api/alt-resource/alt-action");
            sresponse.getHeaders().put("ETag", "http://localhost:8080/path-12948792147");

            String body = "\r\n" +
                    "{\r\n" +
                    "  \"property-1\" : \"value-1\",\r\n" +
                    "  \"property-2\" : \"value-2\",\r\n" +
                    "  \"property-3\" : \"value-3\",\r\n" +
                    "  \"api-location\" : \"http://localhost:8080/path/to/api/other-action/here\",\r\n" +
                    "  \"property-4\" : \"value-4\",\r\n" +
                    "  \"api-alt\" : \"http://localhost:8080/path/to/api/alt-action/there\"\r\n" +
                    "}";

            return new PolicyTestBackEndApiResponse(sresponse, body);
        }
@see io.apiman.test.policies.IPolicyTestBackEndApi#invoke(io.apiman.gateway.engine.beans.ApiRequest, byte[])
gateway/engine/policies/src/test/java/io/apiman/gateway/engine/policies/URLRewritingPolicyTest.java