private PasswordlessAuthenticationToken createToken(final String uid) {
        return passwordlessTokenRepository.createToken(
            PasswordlessUserAccount.builder().username(uid).build(),
            PasswordlessAuthenticationRequest.builder().username(uid).build());
    }
This is {@link RestfulPasswordlessTokenRepositoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-passwordless-authentication/src/test/java/org/apereo/cas/impl/token/RestfulPasswordlessTokenRepositoryTests.java