@Test
public void shouldReturnUrlIfSingleIsConfiguredInCustomConfig() {

  Map<String, String> map = new HashMap<>();
  map.put("yarn.resourcemanager.url", HTTP_RM_URL1);
  ViewContext viewContext = getViewContext(map);
  AmbariApi ambariApi = createNiceMock(AmbariApi.class);
  expect(ambariApi.isClusterAssociated()).andReturn(false);
  replay(viewContext);
  Services services = new Services(ambariApi, viewContext);
  assertEquals(HTTP_RM_URL1, services.getRMUrl());
}