@Test public void test_should_persist_create_usageType_request_to_DB() { when(usageTypeRepository.create(getUsageTypeRequest())).thenReturn(getUsageTypeRequest()); final UsageTypeReq usageTypeRequest = usageTypeService.create(getUsageTypeRequest()); assertTrue(getUsageTypeRequest().equals(usageTypeRequest)); }
public UsageTypeReq create(final UsageTypeReq usageTypeRequest) { return usageTypeRepository.create(usageTypeRequest); }
UsageTypeService { public UsageTypeReq create(final UsageTypeReq usageTypeRequest) { return usageTypeRepository.create(usageTypeRequest); } }
UsageTypeService { public UsageTypeReq create(final UsageTypeReq usageTypeRequest) { return usageTypeRepository.create(usageTypeRequest); }  }
UsageTypeService { public UsageTypeReq create(final UsageTypeReq usageTypeRequest) { return usageTypeRepository.create(usageTypeRequest); }  List<UsageType> getUsageTypes(final UsageTypeGetRequest usageTypeGetRequest); List<UsageType> pushCreateToQueue(final UsageTypeReq usageTypeRequest); UsageTypeReq create(final UsageTypeReq usageTypeRequest); List<UsageType> pushUpdateToQueue(final UsageTypeReq usageTypeRequest); UsageTypeReq update(final UsageTypeReq usageTypeRequest); }
UsageTypeService { public UsageTypeReq create(final UsageTypeReq usageTypeRequest) { return usageTypeRepository.create(usageTypeRequest); }  List<UsageType> getUsageTypes(final UsageTypeGetRequest usageTypeGetRequest); List<UsageType> pushCreateToQueue(final UsageTypeReq usageTypeRequest); UsageTypeReq create(final UsageTypeReq usageTypeRequest); List<UsageType> pushUpdateToQueue(final UsageTypeReq usageTypeRequest); UsageTypeReq update(final UsageTypeReq usageTypeRequest);  }