String xml = CatalogXmlUtils.getNestedDatasetWithInheritedMetadataServiceName();
String baseUriString = "http://cat2.stax.ParseNestedDatasetTest/InheritedMetadataServiceNameNotAccessible.xml";
ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
URI docBaseUri = new URI( baseUriString );
CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
docBaseUri );
assertNotNull( catBuilder );
CatalogXmlUtils.assertNestedDatasetIsAccessible( catBuilder, docBaseUri );
}