@Test
  public void duplicateFiltersAreOkIfDoNotContradict() throws Exception {
    List<Filter> filters = Lists.newArrayList(
        acceptAllFilter(true),
        acceptAllFilter(true),
        linkNameFilter(NAMENODE_JMX, false),
        linkNameFilter(NAMENODE_JMX, false),
        linkAttributeFilter(SSO, false),
        linkAttributeFilter(SSO, false));
    FilterEvaluator evaluator = new FilterEvaluator(filters);
    assertEquals(Optional.of(true), evaluator.isVisible(namenodeUi));
  }
Duplicate filter declarations are ok if their visibility rule is the same
ambari-server/src/test/java/org/apache/ambari/server/state/quicklinksprofile/FilterEvaluatorTest.java