@Test
    void verifyEmptyBody() {
        val factory = new YubiKeyRestHttpRequestCredentialFactory();
        val body = new LinkedMultiValueMap<String, String>();
        assertTrue(factory.fromRequest(null, body).isEmpty());
        body.put("some-other-key", List.of("value1"));
        assertTrue(factory.fromRequest(null, body).isEmpty());
    }
This is {@link YubiKeyRestHttpRequestCredentialFactoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-yubikey-core-mfa/src/test/java/org/apereo/cas/adaptors/yubikey/YubiKeyRestHttpRequestCredentialFactoryTests.java