@Test public void testShouldGetFee() { FeeResponse feeResponse = FeeResponse.builder().fees(getFees()).build(); when(feeRepository.findForCriteria(Matchers.any(FeeCriteria.class))).thenReturn(getFees()); FeeCriteria feeCriteria = FeeCriteria.builder().tenantId("default").feeCriteria("2017-2018") .fromDate(123456789l).toDate(23456789l).build(); assertEquals(feeResponse, feeService.getFee(feeCriteria, new RequestInfo())); }
public FeeResponse getFee(FeeCriteria feeCriteria, RequestInfo requestInfo) { return getSuccessResponseForSearch(feeRepository.findForCriteria(feeCriteria), requestInfo); }
FeeService { public FeeResponse getFee(FeeCriteria feeCriteria, RequestInfo requestInfo) { return getSuccessResponseForSearch(feeRepository.findForCriteria(feeCriteria), requestInfo); } }
FeeService { public FeeResponse getFee(FeeCriteria feeCriteria, RequestInfo requestInfo) { return getSuccessResponseForSearch(feeRepository.findForCriteria(feeCriteria), requestInfo); }  }
FeeService { public FeeResponse getFee(FeeCriteria feeCriteria, RequestInfo requestInfo) { return getSuccessResponseForSearch(feeRepository.findForCriteria(feeCriteria), requestInfo); }  FeeResponse getFee(FeeCriteria feeCriteria, RequestInfo requestInfo); FeeResponse createAsync(FeeRequest feeRequest); FeeResponse updateAsync(FeeRequest feeRequest); void createFee(FeeRequest feeRequest); void updateFee(FeeRequest feeRequest); }
FeeService { public FeeResponse getFee(FeeCriteria feeCriteria, RequestInfo requestInfo) { return getSuccessResponseForSearch(feeRepository.findForCriteria(feeCriteria), requestInfo); }  FeeResponse getFee(FeeCriteria feeCriteria, RequestInfo requestInfo); FeeResponse createAsync(FeeRequest feeRequest); FeeResponse updateAsync(FeeRequest feeRequest); void createFee(FeeRequest feeRequest); void updateFee(FeeRequest feeRequest);  }