public static UsernamePasswordCredential getCredentialsWithSameUsernameAndPassword(final String username) {
        val usernamePasswordCredentials = new UsernamePasswordCredential();
        usernamePasswordCredentials.setUsername(username);
        usernamePasswordCredentials.assignPassword(username);

        return usernamePasswordCredentials;
    }
This is {@link RegisteredServiceTestUtils}.

@author Misagh Moayyed
@since 4.2.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/RegisteredServiceTestUtils.java