### Question:
Converter { public static Provider getProviderObject(String xml) { return toObject(Provider.class, xml); }  static Provider getProviderObject(String xml); static String getProviderXML(Provider provider); static String getRootCollectionJSON(List<Provider> providers); static String getRootCollectionXML(List<Provider> providers); static String getProviderJSON(Provider provider); static Provider getProviderFromJSON(String json);  }### Answer:
@Test public void getProviderObjectTest() { String providerXML = "<provider xmlns=\"" + PROVIDER_REGISTRY_NAMESPACE + "\" href=\"href...\">" + "<id>111</id>" + "<name>Name</name>" + "<vmm-url>http...</vmm-url>" + "<slam-url>http2...</slam-url>" + "<link rel=\"parent\" href=\"/\" type=\"application/xml\" />" + "<link rel=\"self\" href=\"/111\" type=\"application/xml\" />" + "</provider>"; Provider provider = Converter.getProviderObject(providerXML); assertEquals(111l, provider.getId()); assertEquals("Name", provider.getName()); assertEquals("http...", provider.getVmmUrl()); assertEquals("http2...", provider.getSlamUrl()); assertEquals("href...", provider.getHref()); assertEquals(2, provider.getLinks().size()); assertEquals("self", provider.getLinks().get(1).getRel()); providerXML = "<xml/>"; provider = Converter.getProviderObject(providerXML); assertEquals(null, provider); }