@Test
    void verifyOperationWithTrustedDevice() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        val record = new MultifactorAuthenticationTrustRecord();
        record.setDeviceFingerprint(UUID.randomUUID().toString());
        record.setName("DeviceName");
        record.setPrincipal(UUID.randomUUID().toString());
        record.setId(1000);
        MultifactorAuthenticationTrustUtils.putMultifactorAuthenticationTrustRecord(context, record);
        MultifactorAuthenticationTrustUtils.setMultifactorAuthenticationTrustedInScope(context);
        val event = googleValidateSelectedRegistrationAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, event.getId());
        assertEquals(record, event.getAttributes().get("result"));
    }
This is {@link GoogleAuthenticatorValidateSelectedRegistrationActionTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-gauth/src/test/java/org/apereo/cas/gauth/web/flow/GoogleAuthenticatorValidateSelectedRegistrationActionTests.java