### Question:
PolicyV1Filter implements Filter { @Override public Promise<ActionResponse, ResourceException> filterAction(Context context, ActionRequest request, RequestHandler next) { return next.handleAction(context, request) .thenOnResult(new ResultHandler<ActionResponse>() { @Override public void handleResult(ActionResponse response) { for (JsonValue entry : response.getJsonContent()) { entry.remove("ttl"); } } }); } @Inject  PolicyV1Filter(final ApplicationServiceFactory applicationServiceFactory,
                          final ExceptionMappingHandler<EntitlementException, ResourceException> resourceErrorHandler,
                          final ContextHelper contextHelper,
                          @Named("frRest") final Debug debug); @Override Promise<ActionResponse, ResourceException> filterAction(Context context, ActionRequest request,
            RequestHandler next); @Override Promise<ResourceResponse, ResourceException> filterCreate(Context context, CreateRequest request,
            RequestHandler next); @Override Promise<ResourceResponse, ResourceException> filterUpdate(Context context, UpdateRequest request,
            RequestHandler next); @Override Promise<ResourceResponse, ResourceException> filterDelete(Context context, DeleteRequest request,
            RequestHandler next); @Override Promise<QueryResponse, ResourceException> filterQuery(final Context context,
            final QueryRequest request, final QueryResourceHandler handler, final RequestHandler next); @Override Promise<ResourceResponse, ResourceException> filterRead(Context context, ReadRequest request,
            RequestHandler next); @Override Promise<ResourceResponse, ResourceException> filterPatch(Context context, PatchRequest request,
            RequestHandler next);  }### Answer:
@Test public void forwardOnAction() throws Exception { ActionRequest actionRequest = mock(ActionRequest.class); Promise<ActionResponse, ResourceException> promise = filter.filterAction(context, actionRequest, requestHandler); assertThat(promise).succeeded(); assertThat(promise.get().getJsonContent().contains("ttl")).isFalse(); }