@Test
public void testZKQuorumPropertiesSetCorrectly() throws Exception {

  final String zookeeperQuorum = "c6401.ambari.apache.org:2181,c6402.ambari.apache.org:2181";
  PowerMockito.mockStatic(ZooKeeperQuorumCalculator.class);
  PowerMockito.when(ZooKeeperQuorumCalculator.getZooKeeperQuorumString(m_cluster)).thenReturn(
      zookeeperQuorum);
  Map<String, String> hiveSiteProperties = new HashMap<>();
  EasyMock.expect(m_hiveSiteConfig.getProperties()).andReturn(hiveSiteProperties).atLeastOnce();
  m_hiveSiteConfig.setProperties(EasyMock.<Map<String, String>>anyObject());
  EasyMock.expectLastCall().once();
  m_hiveSiteConfig.save();
  EasyMock.expectLastCall().once();
  EasyMock.expect(m_cluster.getDesiredConfigByType(HiveZKQuorumConfigAction.HIVE_SITE_CONFIG_TYPE)).andReturn(m_hiveSiteConfig).atLeastOnce();
  EasyMock.replay(m_executionCommand, m_clusters, m_cluster, m_hiveSiteConfig);
  m_action.execute(null);
  EasyMock.verify(m_executionCommand, m_clusters, m_cluster, m_hiveSiteConfig);
  Assert.assertEquals(zookeeperQuorum, hiveSiteProperties.get(HiveZKQuorumConfigAction.HIVE_SITE_ZK_QUORUM));
  Assert.assertEquals(zookeeperQuorum, hiveSiteProperties.get(HiveZKQuorumConfigAction.HIVE_SITE_ZK_CONNECT_STRING));
}