@Test
    public void testBadHttpMethod() {
        Client client = new ParameterClient(PARAMETER_NAME, new SimpleTestTokenAuthenticator());
        val context = MockWebContext.create();
        context.addRequestParameter(PARAMETER_NAME, VALUE);
        context.setRequestMethod(HttpConstants.HTTP_METHOD.GET.name());
        val credentials = client.getCredentials(new CallContext(context, new MockSessionStore()));
        assertTrue(credentials.isEmpty());
    }
This class tests the {@link ParameterClient} class.

@author Jerome Leleu
@since 1.8.0
pac4j-http/src/test/java/org/pac4j/http/client/direct/ParameterClientTests.java