GroupFacade extends AuthorizableFacade<Group> implements Group { @Override public Set<String> removeMembers(final @NotNull String... memberIds) throws RepositoryException { throw new ListenerReadOnlyException(); } @SuppressWarnings("WeakerAccess")  GroupFacade(final @NotNull Group delegate); @Override Iterator<Authorizable> getDeclaredMembers(); @Override Iterator<Authorizable> getMembers(); @Override boolean isDeclaredMember(final Authorizable authorizable); @Override boolean isMember(final Authorizable authorizable); @Override boolean addMember(final Authorizable authorizable); @Override Set<String> addMembers(final @NotNull String... memberIds); @Override boolean removeMember(final Authorizable authorizable); @Override Set<String> removeMembers(final @NotNull String... memberIds);  }
@Test(expected = ListenerReadOnlyException.class) public void testRORemoveMembers() throws Exception { Group delegate = mock(Group.class); GroupFacade facade = getFacade(delegate); facade.removeMembers(""); }