@Test()
    public void testCreateUser() 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.
        provider.createUser("jack", "secret", "Jack Doe", "jack@example.org");
        final User result = provider.loadUser("jack");

        // Verify results
        assertNotNull(result);
        assertEquals("jack", result.getUsername());
    }
Verifies a new user can be created.
xmppserver/src/test/java/org/jivesoftware/openfire/user/HybridUserProviderTest.java