CugExcludeImpl extends CugExclude.Default { @Override public boolean isExcluded(@NotNull Set<Principal> principals) { if (super.isExcluded(principals)) { return true; } if (!principalNames.isEmpty()) { for (Principal p : principals) { if (principalNames.contains(p.getName())) { return true; } } } return false; }  @Override boolean isExcluded(@NotNull Set<Principal> principals);  }
@Test public void testEmpty() { assertFalse(exclude.isExcluded(principals)); }