@Override
            protected Object lookup(String jndiName) throws NamingException {
                assertEquals(name, jndiName);
                return new String(returnValue);
            }
This test makes the assumption that {@link JndiLocator} is tested elsewhere and only makes an attempt to test the
functionality added by {@link JndiObjectFactory}.
core/src/test/java/org/apache/shiro/jndi/JndiObjectFactoryTest.java