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

        // Execute system under test.
        final int result = provider.getGroupCount();

        // Verify results.
        assertEquals(2, result);
    }
Verifies that the group count is based on data from all providers.
xmppserver/src/test/java/org/jivesoftware/openfire/group/MappedGroupProviderTest.java