@Test public void shouldGetById() throws Exception { service.getById(4L); verify(repository).getById(4L); }
public MaintenanceLog getById(Long id) { return repository.getById(id); }
MaintenanceLogService { public MaintenanceLog getById(Long id) { return repository.getById(id); } }
MaintenanceLogService { public MaintenanceLog getById(Long id) { return repository.getById(id); }  }
MaintenanceLogService { public MaintenanceLog getById(Long id) { return repository.getById(id); }  List<MaintenanceLog> getAll(); List<MaintenanceLog> getAllForFacility(Long facilityId); List<MaintenanceLog> getAllForVendor(Long vendorId); MaintenanceLog getById(Long id); void save(MaintenanceLog log); void save(MaintenanceRequest maintenanceRequest); }
MaintenanceLogService { public MaintenanceLog getById(Long id) { return repository.getById(id); }  List<MaintenanceLog> getAll(); List<MaintenanceLog> getAllForFacility(Long facilityId); List<MaintenanceLog> getAllForVendor(Long vendorId); MaintenanceLog getById(Long id); void save(MaintenanceLog log); void save(MaintenanceRequest maintenanceRequest);  }