CatalogInputAdapter { public String getResourceSiteName(Metacard metacard) { return metacard.getSourceId(); }  ResourceRequest buildReadRequest(Metacard metacard, String qualifier); @SuppressWarnings("unused") ResourceRequest buildReadRequest(Metacard metacard); String getResourceSiteName(Metacard metacard);  }
@Test public void testGetResourceSiteName() { final String siteName = "siteNameValue"; MetacardImpl metacard = new MetacardImpl(); metacard.setSourceId(siteName); String resourceSiteName = catalogInputAdapter.getResourceSiteName(metacard); assertThat(resourceSiteName, is(siteName)); }