@Test
    void verifyAction() {
        val resolver = new RestResponseEntityAuditResourceResolver(true);
        try (val webServer = new MockWebServer()) {
            webServer.start();
            val headers = new LinkedMultiValueMap<String, String>();
            headers.put("header", CollectionUtils.wrapList("value"));
            headers.put("location", CollectionUtils.wrapList("someplace"));
            val entity = new ResponseEntity<>("The Response Body", headers, HttpStatus.OK);
            assertTrue(resolver.resolveFrom(mock(JoinPoint.class), entity).length > 0);
        }
    }
This is {@link RestResponseEntityAuditResourceResolverTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-rest/src/test/java/org/apereo/cas/rest/audit/RestResponseEntityAuditResourceResolverTests.java