@Test
    void verifyAccountNotRegisteredWithBadToken() {
        val casuser = UUID.randomUUID().toString();
        val request = YubiKeyDeviceRegistrationRequest.builder().username(casuser)
            .token(BAD_TOKEN).name(UUID.randomUUID().toString()).build();
        assertFalse(registerAccount(request));
        assertFalse(isYubiKeyRegisteredFor(casuser, null));
    }
This is {@link AbstractYubiKeyAccountRegistryTests}.

@author Timur Duehr
@since 6.0.0
support/cas-server-support-yubikey-core/src/test/java/org/apereo/cas/adaptors/yubikey/AbstractYubiKeyAccountRegistryTests.java