@Test
    public void testBadHttpMethod() {
        Authorizer authorizer = new CheckHttpMethodAuthorizer(HttpConstants.HTTP_METHOD.PUT);
        assertFalse(authorizer.isAuthorized(MockWebContext.create().setRequestMethod(HttpConstants.HTTP_METHOD.DELETE.name()),
            new MockSessionStore(), profiles));
    }
Tests {@link CheckHttpMethodAuthorizer}.

@author Jerome Leleu
@since 1.8.1
pac4j-core/src/test/java/org/pac4j/core/authorization/authorizer/CheckHttpMethodAuthorizerTests.java