DefaultJndiSupport extends JndiLocatorSupport implements
        JndiSupport { public Map<String, String> getJndiEnvironmentMap() { return jndiEnvironmentMap; } DefaultJndiSupport(); void setJndiPrefix(boolean jndiPrefix); boolean isJndiPrefix(); Map<String, String> getJndiEnvironmentMap(); void setJndiEnvironmentMap(Map<String, String> jndiEnvironmentMap); void initialize(); @Override void rebind(String name, Object obj); @Override void unbind(String name); @Override Object lookup(String name);  }
@Test public void testGetJndiEnvironmentMap01() throws Exception { DefaultJndiSupport support = new DefaultJndiSupport(); @SuppressWarnings("rawtypes") Map<?, ?> map = new HashMap(); ReflectionTestUtils.setField(support, "jndiEnvironmentMap", map); Object result = support.getJndiEnvironmentMap(); assertSame(map, result); }