@Test
  public void testNullsAreAccepted() throws Exception {
    QuickLinksProfile profile = QuickLinksProfile.create(ImmutableList.of(Filter.acceptAllFilter(true)), null);
    DefaultQuickLinkVisibilityController evaluator = new DefaultQuickLinkVisibilityController(profile);
    evaluator.isVisible(HDFS, namenodeUi); //should not throw NPE

    Service service = Service.create(HDFS, ImmutableList.of(Filter.acceptAllFilter(true)), null);
    profile = QuickLinksProfile.create(null, ImmutableList.of(service));
    evaluator = new DefaultQuickLinkVisibilityController(profile);
    evaluator.isVisible(HDFS, namenodeUi); //should not throw NPE

  }
Test to prove that {@link DefaultQuickLinkVisibilityController} can accept quicklink profiles with null values.
ambari-server/src/test/java/org/apache/ambari/server/state/quicklinksprofile/QuickLinkVisibilityControllerTest.java