@Test
    public void testEventListenerInvokedGroupCreated() throws Exception
    {
        // Setup test fixture.
        final String groupName = "unit-test-group-o";
        final RecordingGroupEventListener listener = new RecordingGroupEventListener();
        GroupEventDispatcher.addListener(listener);

        // Execute system under test.
        groupManager.createGroup(groupName);

        // Verify results.
        assertEquals(groupName, listener.lastGroupCreated);
    }
Verifies that the corresponding event listener has been invoked after a group has been created.
xmppserver/src/test/java/org/jivesoftware/openfire/group/GroupTest.java