private static Token buildDuoAuthenticationToken() {
        val token = new Token();
        token.setAud("aud");
        token.setIat(123456.00D);
        token.setExp(123456);
        token.setAuth_time(123456789);
        token.setIss("issuer");
        token.setSub("casuser");
        token.setPreferred_username("CAS");
        val authContext = new AuthContext();
        val accessDevice = new AccessDevice();
        accessDevice.setLocation(new Location());
        accessDevice.setHostname("hostname");
        authContext.setAccess_device(accessDevice);
        val authDevice = new AuthDevice();
        authDevice.setLocation(new Location());
        authContext.setAuth_device(authDevice);
        authContext.setUser(new User());
        authContext.setApplication(new Application());
        token.setAuth_context(authContext);
        token.setAuth_result(new AuthResult());
        return token;
    }
This is {@link UniversalPromptDuoSecurityAuthenticationServiceTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-duo/src/test/java/org/apereo/cas/adaptors/duo/authn/UniversalPromptDuoSecurityAuthenticationServiceTests.java