@Test
    public void testGetJanePassword() throws Exception
    {
        // Setup test fixture.
        HybridAuthProvider.PRIMARY_PROVIDER.setValue(TestAuthProvider.NoAuthProvider.class);
        HybridAuthProvider.SECONDARY_PROVIDER.setValue(TestAuthProvider.JaneAuthProvider.class);
        HybridAuthProvider.TERTIARY_PROVIDER.setValue(TestAuthProvider.JohnAuthProvider.class);
        final HybridAuthProvider provider = new HybridAuthProvider();

        // Execute system under test.
        final String result = provider.getPassword("jane");

        // Verify results.
        assertEquals("secret", result);
    }
Verifies that a password from user 'jane' can be retrieved (from the secondary provider)
xmppserver/src/test/java/org/jivesoftware/openfire/auth/HybridAuthProviderTest.java