@Test
  public void getResourcesWithUrlOverride() throws Exception {
    quicklinkProfile = Resources.toString(Resources.getResource("example_quicklinks_profile.json"), Charsets.UTF_8);

    QuickLinkArtifactResourceProvider provider = createProvider();
    Predicate predicate = new PredicateBuilder().property(
      QuickLinkArtifactResourceProvider.STACK_NAME_PROPERTY_ID).equals("HDP").
      and().
      property(QuickLinkArtifactResourceProvider.STACK_VERSION_PROPERTY_ID).equals("2.0.6").
      and().
      property(QuickLinkArtifactResourceProvider.STACK_SERVICE_NAME_PROPERTY_ID).equals("YARN").
      toPredicate();
    Set<Resource> resources =
      provider.getResources(PropertyHelper.getReadRequest(Sets.newHashSet()), predicate);
    Map<String, Link> linkMap = getLinks(resources);

    assertEquals("http://customlink.org/resourcemanager", linkMap.get("resourcemanager_ui").getUrl());
  }
Test the application of link url override in the quick links profile
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/QuickLinkArtifactResourceProviderTest.java