@Test public void shouldGetById() throws Exception { service.getById(2L); verify(repository).getById(2L); }
public ServiceType getById(Long id){ return repository.getById(id); }
ServiceTypeService { public ServiceType getById(Long id){ return repository.getById(id); } }
ServiceTypeService { public ServiceType getById(Long id){ return repository.getById(id); }  }
ServiceTypeService { public ServiceType getById(Long id){ return repository.getById(id); }  List<ServiceType> getAll(); ServiceType getById(Long id); void save(ServiceType serviceType); }
ServiceTypeService { public ServiceType getById(Long id){ return repository.getById(id); }  List<ServiceType> getAll(); ServiceType getById(Long id); void save(ServiceType serviceType);  }