@Test
public void invalidProfilePassed() throws Exception {

  String json = Resources.toString(Resources.getResource("inconsistent_quicklinks_profile.json"), Charsets.UTF_8);
  assertTrue(
      "An instance of " + ShowAllLinksVisibilityController.class.getSimpleName() + " should have been returned",
      QuickLinkVisibilityControllerFactory.get(json) instanceof ShowAllLinksVisibilityController);
  json = Resources.toString(Resources.getResource("inconsistent_quicklinks_profile_2.json"), Charsets.UTF_8);
  assertTrue(
      "An instance of " + ShowAllLinksVisibilityController.class.getSimpleName() + " should have been returned",
      QuickLinkVisibilityControllerFactory.get(json) instanceof ShowAllLinksVisibilityController);
}