MembershipProvider extends AuthorizableBaseProvider { boolean removeMember(@NotNull Tree groupTree, @NotNull Tree memberTree) { if (writer.removeMember(groupTree, getContentID(memberTree))) { return true; } else { log.debug("Authorizable {} was not member of {}", memberTree.getName(), groupTree.getName()); return false; } } MembershipProvider(@NotNull Root root, @NotNull ConfigurationParameters config);   }
@Test public void testRemoveMember() throws Exception { Group gr = createGroup(); User member = createUser(); gr.addMember(member); assertTrue(mp.removeMember(getTree(gr), getTree(member))); }
@Test public void testRemoveNonMember() throws Exception { assertFalse(mp.removeMember(getTree(createGroup()), getTree(getTestUser()))); }