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

        // Execute system under test.
        final Map<String, String> result = provider.loadProperties("john");

        // Verify results.
        assertNotNull(result);

    }
Verifies that properties from a user named 'john' is returned (from the tertiary provider).
xmppserver/src/test/java/org/jivesoftware/openfire/user/property/HybridUserPropertyProviderTest.java