private static UsernamePasswordCredential credentials(final String username,
                                                          final String password) {
        val credentials = new UsernamePasswordCredential();
        credentials.setUsername(username);
        credentials.assignPassword(password);
        return credentials;
    }
Base class for submission throttle tests.

@author Marvin S. Addison
@since 3.0.0
support/cas-server-support-throttle/src/test/java/org/apereo/cas/web/support/BaseThrottledSubmissionHandlerInterceptorAdapterTests.java