@Test public void shouldGetById() throws Exception { service.getById(5L); verify(repository).getById(5L); }
public ServiceContract getById(Long id){ return repository.getById(id); }
ServiceContractService { public ServiceContract getById(Long id){ return repository.getById(id); } }
ServiceContractService { public ServiceContract getById(Long id){ return repository.getById(id); }  }
ServiceContractService { public ServiceContract getById(Long id){ return repository.getById(id); }  List<ServiceContract> getAll(); List<ServiceContract> getAllForFacility(Long facilityId); List<ServiceContract> getAllForVendor(Long vendorId); List<ServiceContract> getAllForEquipment(Long equipmentId); ServiceContract getById(Long id); void save(ServiceContract contract); }
ServiceContractService { public ServiceContract getById(Long id){ return repository.getById(id); }  List<ServiceContract> getAll(); List<ServiceContract> getAllForFacility(Long facilityId); List<ServiceContract> getAllForVendor(Long vendorId); List<ServiceContract> getAllForEquipment(Long equipmentId); ServiceContract getById(Long id); void save(ServiceContract contract);  }