@Test public void test_create() { RequestInfo requestInfo = new RequestInfo().builder().apiId("emp").build(); Designation designation = new Designation().builder().id(10L).active(true).chartOfAccounts("accounts").code("100").description("account designation").build(); DesignationRequest designationRequest = new DesignationRequest().builder().requestInfo(requestInfo).designation(designation).build(); designationService.create(designationRequest); verify(designationRepository).create(any(DesignationRequest.class)); }
public void create(DesignationRequest designationRequest) { designationRepository.create(designationRequest); }
DesignationService { public void create(DesignationRequest designationRequest) { designationRepository.create(designationRequest); } }
DesignationService { public void create(DesignationRequest designationRequest) { designationRepository.create(designationRequest); }  }
DesignationService { public void create(DesignationRequest designationRequest) { designationRepository.create(designationRequest); }  List<Designation> getDesignations(DesignationGetRequest designationGetRequest); List<Designation> getDesignationsFromMDMS(RequestInfo requestInfo, DesignationGetRequest designationGetRequest); MdmsCriteriaReq prepareSearchRequestForDesignation(RequestInfo requestInfo, DesignationGetRequest designationGetRequest); ResponseEntity<?> createDesignation(DesignationRequest designationRequest); ResponseEntity<?> updateDesignation(DesignationRequest designationRequest); ResponseEntity<?> getSuccessResponseForCreate(List<Designation> designationList,
			RequestInfo requestInfo); void create(DesignationRequest designationRequest); void update(DesignationRequest designationRequest); }
DesignationService { public void create(DesignationRequest designationRequest) { designationRepository.create(designationRequest); }  List<Designation> getDesignations(DesignationGetRequest designationGetRequest); List<Designation> getDesignationsFromMDMS(RequestInfo requestInfo, DesignationGetRequest designationGetRequest); MdmsCriteriaReq prepareSearchRequestForDesignation(RequestInfo requestInfo, DesignationGetRequest designationGetRequest); ResponseEntity<?> createDesignation(DesignationRequest designationRequest); ResponseEntity<?> updateDesignation(DesignationRequest designationRequest); ResponseEntity<?> getSuccessResponseForCreate(List<Designation> designationList,
			RequestInfo requestInfo); void create(DesignationRequest designationRequest); void update(DesignationRequest designationRequest);  }