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

        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