@Test
    void verifyUpdatePrincipal() throws Throwable {
        val props = casProperties.getAuthn().getMfa().getSimple().getToken().getRest();
        val port = URI.create(props.getUrl()).getPort();

        try (val webServer = new MockWebServer(port, HttpStatus.OK)) {
            webServer.start();
            val attributes = CollectionUtils.<String, Object>wrap("email", "casuser@example.org");
            assertDoesNotThrow(() -> multifactorAuthenticationService.update(RegisteredServiceTestUtils.getPrincipal(), attributes));
        }
    }
This is {@link RestfulCasSimpleMultifactorAuthenticationServiceTests}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-simple-mfa/src/test/java/org/apereo/cas/mfa/simple/validation/RestfulCasSimpleMultifactorAuthenticationServiceTests.java