public void testDeleteMember() throws Exception {
        final String GROUP_NAME = "Test Group A";
        final JID needle = new JID("jane@" + Fixtures.XMPP_DOMAIN);
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        provider.createGroup(GROUP_NAME);
        provider.addMember(GROUP_NAME, needle, false);

        provider.deleteMember(GROUP_NAME, needle);
        final Group result = provider.getGroup(GROUP_NAME);

        assertEquals(0, result.getMembers().size());
    }
Verifies that {@link DefaultGroupProvider#deleteMember(String, JID)} remove a member from a group
xmppserver/src/test/java/org/jivesoftware/openfire/group/DefaultGroupProviderTest.java