@Test
    public void testReflectedInCacheAdminAdded() throws Exception
    {
        // Setup test fixture.
        final String groupName = "unit-test-group-r";
        final Group group = groupManager.createGroup(groupName);
        final JID testUser = new JID("unit-test-user-r", "example.org", null);

        // Execute system under test.
        group.getAdmins().add(testUser);
        final CacheableOptional<Group> cachedGroup = groupCache.get(groupName);

        // Verify results.
        assertTrue(cachedGroup.get().isUser(testUser));
        assertTrue(cachedGroup.get().getAdmins().contains(testUser));
    }
Verifies that the group contained in the Group cache contains an admin user after it has been added to the group.
xmppserver/src/test/java/org/jivesoftware/openfire/group/GroupTest.java