@Test
    public void testGetGroupNamesFromAllProviders() throws Exception
    {
        // Setup test fixture.
        JiveGlobals.setProperty(MappedGroupProvider.PROPERTY_MAPPER_CLASSNAME, TestGroupProviderMapper.class.getName());
        final MappedGroupProvider provider = new MappedGroupProvider();

        // Execute system under test.
        final Collection<String> result = provider.getGroupNames();

        // Verify results.
        assertEquals(2, result.size());
        assertTrue(result.contains("little-endians"));
        assertTrue(result.contains("big-endians"));
    }
Verifies that groups are returned from all providers.
xmppserver/src/test/java/org/jivesoftware/openfire/group/MappedGroupProviderTest.java