@Test
public void testGetAmbariProperties() throws Exception {

  Properties ambariProperties = new Properties();
  ambariProperties.setProperty("name", "value");
  Configuration conf = new Configuration(ambariProperties);
  mockStatic(Configuration.class);
  Method[] methods = MemberMatcher.methods(Configuration.class, "readConfigFile");
  PowerMock.expectPrivate(Configuration.class, methods[0]).andReturn(ambariProperties);
  replayAll();
  Map<String, String> props = conf.getAmbariProperties();
  verifyAll();
  Assert.assertEquals("value", props.get("name"));
}