assertThat( identityAssertionProvider.getParams().get("name"), is( "user.name" ) );
}
@Test
public void testParseServiceParamsInAmbariFormat() throws IOException, SAXException {
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" ) );