@Test
    public void testGetGoodCredentials() {
        val formClient = getFormClient();
        val credentials = (UsernamePasswordCredentials) formClient.getCredentials(new CallContext(MockWebContext.create()
                .addRequestParameter(formClient.getUsernameParameter(), USERNAME)
                .addRequestParameter(formClient.getPasswordParameter(), USERNAME), new MockSessionStore())).get();
        assertEquals(USERNAME, credentials.getUsername());
        assertEquals(USERNAME, credentials.getPassword());
    }
This class tests the {@link DirectFormClient} class.

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