@Test
public void testRangerKmsServerProperties_default() throws Exception {

  // Given
  final String kmsSiteConfigType = "kms-site";
  Map<String, Map<String, String>> properties = new HashMap<String, Map<String, String>>();
  Map<String, String> kmsSiteProperties = new HashMap<String, String>();
  properties.put(kmsSiteConfigType, kmsSiteProperties);
  kmsSiteProperties.put("hadoop.kms.authentication.signer.secret.provider.zookeeper.connection.string",
    createHostAddress("%HOSTGROUP::group1%", "2181"));
  Map<String, Map<String, String>> parentProperties = new HashMap<String, Map<String, String>>();
  Configuration parentClusterConfig = new Configuration(parentProperties,
    Collections.<String, Map<String, Map<String, String>>>emptyMap());
  Configuration clusterConfig = new Configuration(properties,
    Collections.<String, Map<String, Map<String, String>>>emptyMap(), parentClusterConfig);
  Collection<String> kmsServerComponents = new HashSet<String>();
  kmsServerComponents.add("RANGER_KMS_SERVER");
  TestHostGroup group1 = new TestHostGroup("group1", kmsServerComponents, Collections.singleton("host1"));
  Collection<TestHostGroup> hostGroups = Collections.singleton(group1);
  ClusterTopology topology = createClusterTopology(bp, clusterConfig, hostGroups);
  BlueprintConfigurationProcessor configProcessor = new BlueprintConfigurationProcessor(topology);
  // When
  configProcessor.doUpdateForClusterCreate();
  // Then
  assertEquals("host1:2181", clusterConfig.getPropertyValue(kmsSiteConfigType,
    "hadoop.kms.authentication.signer.secret.provider.zookeeper.connection.string"));
}