@Test public void shouldGetById() throws Exception { service.getById(3L); verify(repository).getById(3L); }
public Vendor getById(Long id) { return repository.getById(id); }
VendorService { public Vendor getById(Long id) { return repository.getById(id); } }
VendorService { public Vendor getById(Long id) { return repository.getById(id); }  }
VendorService { public Vendor getById(Long id) { return repository.getById(id); }  List<Vendor> getAll(); Vendor getById(Long id); void save(Vendor vendor); void removeVendor(Long id); }
VendorService { public Vendor getById(Long id) { return repository.getById(id); }  List<Vendor> getAll(); Vendor getById(Long id); void save(Vendor vendor); void removeVendor(Long id);  }