public void testAddAdminMember() throws Exception {
        final JID needle = new JID("jane@" + Fixtures.XMPP_DOMAIN);
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        provider.createGroup("Test Group A");

        provider.addMember("Test Group A", needle, true);
        final Group result = provider.getGroup("Test Group A");

        assertTrue(result.getAdmins().contains(needle));
    }
Verifies that {@link DefaultGroupProvider#addMember(String, JID, boolean)} adds an admin member to a group
xmppserver/src/test/java/org/jivesoftware/openfire/group/DefaultGroupProviderTest.java