@Test
    void verifyOperation() throws Exception {
        val requestContext = MockRequestContext.create();
        WebUtils.putAuthentication(RegisteredServiceTestUtils.getAuthentication(), requestContext);
        val credential = new CasTwilioMultifactorTokenCredential();
        credential.setToken(UUID.randomUUID().toString());
        WebUtils.putCredential(requestContext, credential);
        val action = new SetCredentialMetadataAuthenticationAction();
        action.execute(requestContext);
        assertTrue(credential.getCredentialMetadata().containsProperty(Authentication.class.getName()));
    }
This is {@link SetCredentialMetadataAuthenticationActionTests}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-twilio-mfa/src/test/java/org/apereo/cas/mfa/SetCredentialMetadataAuthenticationActionTests.java