ImmutablePrivilegeDefinition implements PrivilegeDefinition { @NotNull @Override public Set<String> getDeclaredAggregateNames() { return declaredAggregateNames; } ImmutablePrivilegeDefinition(@NotNull String name, boolean isAbstract, @Nullable Iterable<String> declaredAggregateNames); @NotNull @Override String getName(); @Override boolean isAbstract(); @NotNull @Override Set<String> getDeclaredAggregateNames(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }
@Test public void testGetDeclaredAggregatedNames() { assertEquals(ImmutableSet.of("aggrName"), def.getDeclaredAggregateNames()); }
@Test public void testGetDeclaredAggregatedNames2() { assertTrue(new ImmutablePrivilegeDefinition("name", false, null).getDeclaredAggregateNames().isEmpty()); }