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

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