@Test
    public void testGetCredentialsMissingPassword() {
        val formClient = getFormClient();
        val context = MockWebContext.create();
        assertFalse(formClient.getCredentials(new CallContext(context.addRequestParameter(formClient.getPasswordParameter(), PASSWORD),
            new MockSessionStore())).isPresent());
    }
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