### Question:
VendorHandler implements VendorService.Iface { @Override public Vendor getByID(String id) throws TException { assertNotEmpty(id); Vendor vendor = vendorDatabaseHandler.getByID(id); assertNotNull(vendor); return vendor; } VendorHandler(); @Override Vendor getByID(String id); @Override List<Vendor> getAllVendors(); @Override Set<String> getAllVendorNames(); @Override List<Vendor> searchVendors(String searchText); @Override List<String> searchVendorIds(String searchText); @Override String addVendor(Vendor vendor); @Override RequestStatus deleteVendor(String id, User user); @Override RequestStatus updateVendor(Vendor vendor, User user); @Override RequestStatus mergeVendors(String mergeTargetId, String mergeSourceId, Vendor mergeSelection, User user);  }### Answer:
@Test public void testGetByID() throws Exception { for (Vendor vendor : vendorList) { String id = vendor.getId(); Vendor actualVendor = vendorHandler.getByID(id); assertVendorEquals(vendor, actualVendor); } }