public void testGetGroupByName() throws Exception
    {
        // Setup test fixture.
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        provider.createGroup("test");

        // Execute system under test.
        final Group result = provider.getGroup("test");

        // Verify result.
        assertNotNull(result);
        assertEquals("test", result.getName());
    }
Verifies that a group can be retrieved based on the name that it was created with.
xmppserver/src/test/java/org/jivesoftware/openfire/group/DefaultGroupProviderTest.java