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

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

        // Verify results.
        assertEquals(2, result.size());
        assertTrue(result.contains("jane"));
        assertTrue(result.contains("john"));
    }
Verifies that users are returned from all providers.
xmppserver/src/test/java/org/jivesoftware/openfire/user/MappedUserProviderTest.java