GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Iterator<Authorizable> getDeclaredMembers() throws RepositoryException { return AuthorizableWrapper.createIterator(getDelegate().getDeclaredMembers(), getMgr()); } GroupImpl(Group dlg, AutoSaveEnabledManager mgr); @NotNull @Override Iterator<Authorizable> getDeclaredMembers(); @NotNull @Override Iterator<Authorizable> getMembers(); @Override boolean isDeclaredMember(@NotNull Authorizable authorizable); @Override boolean isMember(@NotNull Authorizable authorizable); @Override boolean addMember(@NotNull Authorizable authorizable); @NotNull @Override Set<String> addMembers(@NotNull String... memberIds); @Override boolean removeMember(@NotNull Authorizable authorizable); @NotNull @Override Set<String> removeMembers(@NotNull String... memberIds);  }
@Test public void testGetDeclaredMembers() throws Exception { assertTrue(group.getDeclaredMembers().hasNext()); verify(dlg, times(1)).getDeclaredMembers(); }