URI docBaseUri = new URI( baseUriString );
DateType expires = new DateType( false, new Date( System.currentTimeMillis() + 60*60*1000));
String xml = CatalogXmlUtils.getCatalogWithCompoundService( expires);
ThreddsXmlParser cp = StaxThreddsXmlParser.newInstance();
CatalogBuilder catBuilder = cp.parseIntoBuilder( new StringReader( xml ),
docBaseUri );
assertNotNull( catBuilder );
CatalogXmlUtils.assertCatalogWithCompoundServiceAsExpected( catBuilder, docBaseUri, expires);
}