@Test
public void whenInvalidProfileIsSetAllLinksAreVisible() throws Exception {

  quicklinkProfile = "{}";
  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.<String>newHashSet()), predicate);
  Map<String, Link> linkMap = getLinks(resources);
  for (Link link: linkMap.values()) {
    assertTrue("All links should be visible.", link.isVisible());
  }
}