@Test
    public void testCountsUsersFromAllProviders() throws Exception
    {
        // Setup test fixture.
        HybridUserProvider.PRIMARY_PROVIDER.setValue(TestUserProvider.NoUserProvider.class);
        HybridUserProvider.SECONDARY_PROVIDER.setValue(TestUserProvider.JaneUserProvider.class);
        HybridUserProvider.TERTIARY_PROVIDER.setValue(TestUserProvider.JohnUserProvider.class);
        final HybridUserProvider provider = new HybridUserProvider();

        // 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/HybridUserProviderTest.java