@Test
    public void testMissingUsernamePasswordAuthenticator() {
        val cookieClient = new CookieClient("testcookie", null);
        TestsHelper.expectException(() -> cookieClient.getCredentials(new CallContext(MockWebContext.create(), new MockSessionStore())),
                TechnicalException.class, "authenticator cannot be null");
    }
This class tests the {@link CookieClient} class.

@author Misagh Moayyed
@since 1.8.0
pac4j-http/src/test/java/org/pac4j/http/client/direct/CookieClientTests.java