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

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

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