@Test
public void testNext() throws RepositoryException {

    AccessControlList acl = (AccessControlList)it.next();
    AccessControlEntry[] entries = acl.getAccessControlEntries();
    assertEquals("alice", entries[0].getPrincipal().getName());
    acl = (AccessControlList)it.next();
    entries = acl.getAccessControlEntries();
    assertEquals("bob", entries[0].getPrincipal().getName());
}