@Test public void shouldGetById() throws Exception { service.getById(6L); verify(repository).getById(6L); }
public MaintenanceRequest getById(Long id) { return repository.getById(id); }
MaintenanceRequestService { public MaintenanceRequest getById(Long id) { return repository.getById(id); } }
MaintenanceRequestService { public MaintenanceRequest getById(Long id) { return repository.getById(id); }  }
MaintenanceRequestService { public MaintenanceRequest getById(Long id) { return repository.getById(id); }  List<MaintenanceRequest> getAll(); List<MaintenanceRequest> getAllForFacility(Long facilityId); List<MaintenanceRequest> getAllForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForUser(Long userId); MaintenanceRequest getById(Long id); void save(MaintenanceRequest request); List<Log> getFullHistory(Long inventoryId); }
MaintenanceRequestService { public MaintenanceRequest getById(Long id) { return repository.getById(id); }  List<MaintenanceRequest> getAll(); List<MaintenanceRequest> getAllForFacility(Long facilityId); List<MaintenanceRequest> getAllForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForVendor(Long vendorId); List<MaintenanceRequest> getOutstandingForUser(Long userId); MaintenanceRequest getById(Long id); void save(MaintenanceRequest request); List<Log> getFullHistory(Long inventoryId);  }