@Test
public void testAuthorize() throws VException {

    Call call = VSecurity.newCall(new CallParams()
            .withLocalPrincipal(SERVER_PRINCIPAL)
            .withLocalBlessings(SERVER_BLESSINGS)
            .withRemoteBlessings(clientBlessings)
            .withMethod(methodName)
            .withMethodTags(methodTags));
    try {
        AUTHORIZER.authorize(CONTEXT, call);
        if (!shouldAccept) {
            fail(String.format(
                    "Access granted for method %s to %s", methodName, clientBlessings));
        }
    } catch (VException e) {
        if (shouldAccept) {
            throw e;
        }
    }
}