MembershipProvider extends AuthorizableBaseProvider { boolean addMember(@NotNull Tree groupTree, @NotNull Tree newMemberTree) { return writer.addMember(groupTree, getContentID(newMemberTree)); } MembershipProvider(@NotNull Root root, @NotNull ConfigurationParameters config);   }
@Test public void testAddMemberAgain() throws Exception { Group grp = createGroup(); List<String> memberPaths = createMembers(grp, NUM_USERS); root.commit(); Tree groupTree = root.getTree(grp.getPath()); for (String path : memberPaths) { Tree memberTree = root.getTree(path); assertFalse(mp.addMember(groupTree, memberTree)); } }