### Question:
VendorHandler implements VendorService.Iface { @Override public String addVendor(Vendor vendor) throws TException { assertNotNull(vendor); assertIdUnset(vendor.getId()); vendorDatabaseHandler.addVendor(vendor); return vendor.getId(); } 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 testAddVendor() throws Exception { Vendor oracle = new Vendor().setShortname("Oracle").setFullname("Oracle Corporation Inc").setUrl("http: String id = vendorHandler.addVendor(oracle); assertNotNull(id); assertEquals(vendorList.size() + 1, vendorHandler.getAllVendors().size()); Vendor actual = vendorHandler.getByID(id); assertVendorEquals(oracle, actual); }