@Test
    void verifyActionEmptyEnvelope() {
        val r = new SamlResponseAuditResourceResolver();
        val envelope = mock(Envelope.class);
        val body = mock(Body.class);

        when(body.getUnknownXMLObjects()).thenReturn(CollectionUtils.wrapList());
        when(envelope.getBody()).thenReturn(body);
        val result = r.resolveFrom(mock(JoinPoint.class), envelope);
        assertNotNull(result);
        assertEquals(0, result.length);
    }
This is {@link SamlResponseAuditResourceResolverTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-idp-web/src/test/java/org/apereo/cas/support/saml/web/idp/audit/SamlResponseAuditResourceResolverTests.java