PrivilegeImpl implements Privilege { @Override public boolean isAggregate() { return this.declaredPrivileges != null && declaredPrivileges.length > 0; } PrivilegeImpl(Session session, String name, Privilege[] declaredPrivileges);  PrivilegeImpl(Session session, String name, Privilege[] declaredPrivileges, boolean isAbstract); String localName(); @Override String getName(); @Override boolean isAbstract(); @Override boolean isAggregate(); @Override Privilege[] getDeclaredAggregatePrivileges(); @Override Privilege[] getAggregatePrivileges(); boolean contains(Privilege p); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode();  }
@Test public void testIsAggregate() { assertTrue(!p1.isAggregate()); assertTrue(p3.isAggregate()); }