@Override
    protected String getUsernameUnderTest() throws Exception {
        val uid = "aham";

        val bindInit = new BindConnectionInitializer("CN=admin,CN=Users,DC=cas,DC=example,DC=org", new Credential("P@ssw0rd"));

        val sslUtil = new SSLUtil(null, new TrustAllTrustManager());
        val socketFactory = sslUtil.createSSLSocketFactory();

        @Cleanup
        val connection = new LDAPConnection(socketFactory, "localhost", 10636,
            bindInit.getBindDn(), bindInit.getBindCredential().getString());

        val mod = new Modification(ModificationType.REPLACE, "streetAddress", " ");
        connection.modify(String.format("CN=%s,CN=Users,DC=cas,DC=example,DC=org", uid), mod);

        return uid;
    }
This is {@link ActiveDirectoryGoogleAuthenticatorTokenCredentialRepositoryTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-gauth-ldap/src/test/java/org/apereo/cas/gauth/credential/ActiveDirectoryGoogleAuthenticatorTokenCredentialRepositoryTests.java