### Question:
AgendaProgressRequestProcessor extends EndpointDataObjectRequestProcessor<AgendaProgress> { protected boolean shouldReturnField(DataObjectRequest<AgendaProgress> request, String fieldName) { if(request.getQueries() != null) { List<Query> fieldQueries = request.getQueries().stream().filter(q -> q.getField().isMatch(ByFields.fieldName())).collect(Collectors.toList()); if(fieldQueries.size() > 0) { return fieldQueries.stream().anyMatch(q -> StringUtils.containsIgnoreCase(q.getStringValue(), fieldName)); } } return true; } AgendaProgressRequestProcessor(ObjectPersister<AgendaProgress> agendaProgressPersister, ObjectPersister<Agenda> agendaPersister,
        ObjectPersister<OperationProgress> operationProgressPersister); @Override DataObjectResponse<AgendaProgress> handlePOST(DataObjectRequest<AgendaProgress> request); @Override DataObjectResponse<AgendaProgress> handlePUT(DataObjectRequest<AgendaProgress> request); @Override DataObjectResponse<AgendaProgress> handleGET(DataObjectRequest<AgendaProgress> request); @Override DataObjectResponse<AgendaProgress> handleDELETE(DataObjectRequest<AgendaProgress> request); void setOperationProgressClient(OperationProgressRequestProcessor operationProgressClient);  }### Answer:
@Test(dataProvider = "shouldReturnFieldProvider") public void testShouldReturnField(List<Query> queryList, String fieldName, final boolean EXPECTED_RESULT) { Assert.assertEquals(requestProcessor.shouldReturnField(new DefaultDataObjectRequest<>(queryList, null, null), fieldName), EXPECTED_RESULT); }