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

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

        // Verify results.
        assertNotNull(cachedGroup.get());
        assertTrue(cachedGroup.get().isUser(testUser));
    }
Verifies that Group cache's content contains a group after it has been created.
xmppserver/src/test/java/org/jivesoftware/openfire/group/GroupTest.java