private void requestExpectPolicyFailure(String headerName, String headerValue) throws Throwable {
        final PolicyTestRequest request = PolicyTestRequest.build(PolicyTestRequestType.GET, "/example/path");
        request.header(headerName, headerValue);
        try {
            send(request);
            fail(PolicyFailureError.class + " expected");

        } catch (PolicyFailureError policyFailureError) {
            final PolicyFailure failure = policyFailureError.getFailure();

            assertEquals(HttpURLConnection.HTTP_FORBIDDEN, failure.getFailureCode());
            assertEquals(PolicyFailureType.Authorization, failure.getType());
        }
    }
Makes a request with the given {@code method} to the specified {@code resource}, expecting an
HTTP 403 response status from the policy.

@param headerName  the HTTP header name
@param headerValue the HTTP header value
plugins/header-allow-deny-policy/src/test/java/io/apiman/plugins/headerallowdeny/HeaderAllowDenyPolicyTest.java