Digester digester = loader.newDigester();
String name = "org/apache/hadoop/gateway/topology/xml/service-param-topology-ambari-format.conf";
URL url = ClassLoader.getSystemResource( name );
assertThat( "Failed to find URL for resource " + name, url, notNullValue() );
File file = new File( url.getFile() );
TopologyBuilder topologyBuilder = digester.parse( url );
Topology topology = topologyBuilder.build();
assertThat( "Failed to parse resource " + name, topology, notNullValue() );
topology.setTimestamp( file.lastModified() );
assertThat( topology.getName(), is( "test-topology-name" ) );
assertThat( topology.getTimestamp(), is( file.lastModified() ) );