@Test public void test_should_return_list_of_service_groups() { List<ServiceGroup> serviceGroupList = prepareServiceGroupObjectList(); when(serviceGroupRepository.getAllServiceGroup(any(ServiceGroupGetRequest.class))).thenReturn(serviceGroupList); assertTrue(serviceGroupList.equals(serviceGroupRepository.getAllServiceGroup(any(ServiceGroupGetRequest.class)))); }
public List<ServiceGroup> getAllServiceGroup(ServiceGroupGetRequest serviceGroupGetRequest) { return categoryRepository.getAllServiceGroup(serviceGroupGetRequest); }
ServiceGroupService { public List<ServiceGroup> getAllServiceGroup(ServiceGroupGetRequest serviceGroupGetRequest) { return categoryRepository.getAllServiceGroup(serviceGroupGetRequest); } }
ServiceGroupService { public List<ServiceGroup> getAllServiceGroup(ServiceGroupGetRequest serviceGroupGetRequest) { return categoryRepository.getAllServiceGroup(serviceGroupGetRequest); }  }
ServiceGroupService { public List<ServiceGroup> getAllServiceGroup(ServiceGroupGetRequest serviceGroupGetRequest) { return categoryRepository.getAllServiceGroup(serviceGroupGetRequest); }  ServiceGroupRequest create(final ServiceGroupRequest serviceGroupRequest); ServiceGroupRequest update(final ServiceGroupRequest serviceGroupRequest); ServiceGroup createCategory(final String topic, final String key,
                                       final ServiceGroupRequest serviceGroupRequest); ServiceGroup updateCategory(final String topic, final String key,
                                       final ServiceGroupRequest serviceGroupRequest); List<ServiceGroup> getAllServiceGroup(ServiceGroupGetRequest serviceGroupGetRequest); boolean verifyRequestUniqueness(ServiceGroupRequest serviceGroupRequest, String action); boolean verifyIfNameAlreadyExists(ServiceGroupRequest serviceGroupRequest, String action); boolean verifyIfCodeAlreadyExists(ServiceGroupRequest serviceGroupRequest, String action); }
ServiceGroupService { public List<ServiceGroup> getAllServiceGroup(ServiceGroupGetRequest serviceGroupGetRequest) { return categoryRepository.getAllServiceGroup(serviceGroupGetRequest); }  ServiceGroupRequest create(final ServiceGroupRequest serviceGroupRequest); ServiceGroupRequest update(final ServiceGroupRequest serviceGroupRequest); ServiceGroup createCategory(final String topic, final String key,
                                       final ServiceGroupRequest serviceGroupRequest); ServiceGroup updateCategory(final String topic, final String key,
                                       final ServiceGroupRequest serviceGroupRequest); List<ServiceGroup> getAllServiceGroup(ServiceGroupGetRequest serviceGroupGetRequest); boolean verifyRequestUniqueness(ServiceGroupRequest serviceGroupRequest, String action); boolean verifyIfNameAlreadyExists(ServiceGroupRequest serviceGroupRequest, String action); boolean verifyIfCodeAlreadyExists(ServiceGroupRequest serviceGroupRequest, String action); static final Logger logger; }