@Test
    public void testRetrieveGetParameterNotSupported() {
        val context = MockWebContext.create().setRequestMethod(HttpConstants.HTTP_METHOD.GET.name())
            .addRequestParameter(GOOD_PARAMETER, VALUE);
        TestsHelper.expectException(() -> postExtractor.extract(new CallContext(context, new MockSessionStore())),
                CredentialsException.class, "GET requests not supported");
    }
This class tests the {@link ParameterExtractor}.

@author Jerome Leleu
@since 1.8.0
pac4j-http/src/test/java/org/pac4j/http/credentials/extractor/ParameterExtractorTests.java