@Test
    void createDefaultCredential() {
        val request = new MockHttpServletRequest();
        val requestBody = new LinkedMultiValueMap<String, String>();
        requestBody.add("username", "name");
        requestBody.add("password", "passwd");
        val cred = factory.fromRequest(request, requestBody);
        assertTrue(cred.isEmpty());
    }
Unit tests for {@link X509RestMultipartBodyCredentialFactory}.

@author Dmytro Fedonin
@since 5.1.0
support/cas-server-support-rest-x509/src/test/java/org/apereo/cas/support/x509/rest/X509RestHttpRequestHeaderCredentialFactoryTests.java