@Test
public void testStackPasswordPropertyFilter() throws Exception{

ap<String, Map<String, String>> properties = new HashMap<String, Map<String, String>>();
ap<String, String> rangerAdminSiteProps = new HashMap<String, String>();
angerAdminSiteProps.put("ranger.service.https.attrib.keystore.pass", "SECRET:admin-prp:1:ranger.service.pass");
roperties.put("ranger-admin-site", rangerAdminSiteProps);
ap<String, Map<String, String>> parentProperties = new HashMap<String, Map<String, String>>();
onfiguration parentClusterConfig = new Configuration(parentProperties,
ollections.<String, Map<String, Map<String, String>>>emptyMap());
onfiguration clusterConfig = new Configuration(properties,
ollections.<String, Map<String, Map<String, String>>>emptyMap(), parentClusterConfig);
ollection<String> hgComponents = new HashSet<String>();
gComponents.add("NAMENODE");
      hgComponents.add("SECONDARY_NAMENODE");
gComponents.add("RESOURCEMANAGER");
estHostGroup group1 = new TestHostGroup("group1", hgComponents, Collections.singleton("testhost"));
ollection<String> hgComponents2 = new HashSet<String>();
gComponents2.add("DATANODE");
gComponents2.add("HDFS_CLIENT");
estHostGroup group2 = new TestHostGroup("group2", hgComponents2, Collections.singleton("testhost2"));
ollection<TestHostGroup> hostGroups = new HashSet<TestHostGroup>();
ostGroups.add(group1);
ostGroups.add(group2);
xpect(stack.isPasswordProperty((String) anyObject(),(String) anyObject(),(String) anyObject())).andReturn(true).once();
lusterTopology topology = createClusterTopology(bp, clusterConfig, hostGroups);
lueprintConfigurationProcessor configProcessor = new BlueprintConfigurationProcessor(topology);
onfigProcessor.doUpdateForBlueprintExport();
ssertFalse(properties.get("ranger-admin-site").containsKey("ranger.service.https.attrib.keystore.pass"));
}