@Test
    void verifyUserUpdates() {
        val endpoint = new DuoSecurityAdminApiEndpoint(casProperties, this.applicationContext);
        try (val webServer = new MockWebServer(8443)) {
            webServer.responseBodySupplier(() -> new ClassPathResource("duoAdminApiResponse-user.json"));
            webServer.start();
            val responseEntity = endpoint.updateUser("casuser", DuoSecurityMultifactorAuthenticationProperties.DEFAULT_IDENTIFIER,
                new DuoSecurityUserAccount().setStatus(DuoSecurityUserAccountStatus.AUTH));
            assertTrue(responseEntity.hasBody());
            assertTrue(responseEntity.getStatusCode().is2xxSuccessful());
        }
    }
This is {@link DuoSecurityAdminApiEndpointTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-duo-core/src/test/java/org/apereo/cas/adaptors/duo/web/DuoSecurityAdminApiEndpointTests.java