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

        // Execute system under test & Verify results.
        assertThrows(UserNotFoundException.class, () -> provider.getPassword("non-existing-user"));
    }
Verifies that an exception is thrown when a password for a non-existing user is being requested.
xmppserver/src/test/java/org/jivesoftware/openfire/auth/MappedAuthProviderTest.java