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

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

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