@Test
public void testGetDeclaredAggregatePrivileges() {

    Privilege[] pp = p3.getDeclaredAggregatePrivileges();
    assertEquals(2, pp.length);
    assertEquals(p1, pp[0]);
    assertEquals(p2, pp[1]);
}