### Question:
PoliciesAuditFilter extends AuditFilter { @Override public JsonValue getActionSuccessDetail(ActionRequest request, ActionResponse response) { return response.getJsonContent(); } @Inject  PoliciesAuditFilter(@Named("frRest") Debug debug, CrestAuditorFactory crestAuditorFactory); @Override JsonValue getActionSuccessDetail(ActionRequest request, ActionResponse response);  }### Answer:
@Test public void shouldReturnJsonDetailForActionSuccess() { JsonValue jsonValue = new JsonValue("Test string"); ActionResponse actionResponse = Responses.newActionResponse(jsonValue); ActionRequest actionRequest = mock(ActionRequest.class); JsonValue filterResponse = auditFilter.getActionSuccessDetail(actionRequest, actionResponse); assertThat(filterResponse).isEqualTo(jsonValue); }