@Test
  public void validProfilePassed() throws Exception {
    String json = Resources.toString(Resources.getResource("example_quicklinks_profile.json"), Charsets.UTF_8);
    assertTrue(
        "An instance of " + DefaultQuickLinkVisibilityController.class.getSimpleName() + " should have been returned",
        QuickLinkVisibilityControllerFactory.get(json) instanceof DefaultQuickLinkVisibilityController);
  }
If receives a valid profile json string, an visibility controller should be returned that behaves according to the
received profile.
ambari-server/src/test/java/org/apache/ambari/server/state/quicklinksprofile/QuickLinkVisibilityControllerFactoryTest.java