@Test
    void verifyUserAccountStatusUnknown() throws Exception {
        val payload = Map.of(
            DuoSecurityAuthenticationService.RESULT_KEY_CODE, 1984,
            DuoSecurityAuthenticationService.RESULT_KEY_STAT, "FAIL");
        try (val webServer = new MockWebServer(true, MAPPER.writeValueAsString(payload))) {
            webServer.start();
            val service = getAuthenticationService(webServer.getPort());
            service.getProperties().setAccountStatusEnabled(true);
            val username = UUID.randomUUID().toString();
            val result = service.getUserAccount(username);
            assertEquals(DuoSecurityUserAccountStatus.AUTH, result.getStatus());
        }
    }
This is {@link DuoSecurityAuthenticationServiceTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-duo-core/src/test/java/org/apereo/cas/adaptors/duo/authn/DuoSecurityAuthenticationServiceTests.java