@Override
                protected Object lookup(String jndiName) throws NamingException {
                    throw new NamingException("No resource named " + jndiName);
                }
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