@Test
public void testGetUrl_https() throws Exception {

  Cluster cluster = createNiceMock(Cluster.class);
  Config config = createNiceMock(Config.class);
  Map<String, String> map = new HashMap<>();
  map.put("atlas.enableTLS", "true");
  map.put("atlas.server.https.port", "21443");
  expect(cluster.getDesiredConfigByType("application-properties")).andReturn(config).anyTimes();
  expect(config.getProperties()).andReturn(map).anyTimes();
  replay(cluster, config);
  AtlasServerHttpPropertyRequest propertyRequest = new AtlasServerHttpPropertyRequest();
  String url = propertyRequest.getUrl(cluster, "host1");
  Assert.assertEquals("https://host1:21443/api/atlas/admin/status", url);
}