JndiStatefulObjectFactoryBean.class, null, mpv);
ConfigurableJndiObjectFactoryBean.class, null, mpv);
    public void testDoCallsReturnDifferentObjects() throws Exception    {        ServiceFactory sf = new ServiceFactory();        Hashtable ht = (Hashtable) sf.getContext().getBean("env");        MutablePropertyValues mpv = new MutablePropertyValues();        mpv.addPropertyValue("jndiEnvironment",ht);        mpv.addPropertyValue("lookupOnStartup",Boolean.FALSE);        mpv.addPropertyValue("jndiName","omero/remote/ome.api.RawPixelStore");        mpv.addPropertyValue("proxyInterface",RawPixelsStore.class.getName());        BeanDefinition def = new RootBeanDefinition(                JndiStatefulObjectFactoryBean.class, null, mpv);        StaticApplicationContext context = new StaticApplicationContext();        context.registerBeanDefinition( "jndi", def );        context.refresh();                RawPixelsStore raw_1 = (RawPixelsStore) context.getBean("jndi");        RawPixelsStore raw_2 = (RawPixelsStore) context.getBean("jndi");        assertTrue( raw_1 != raw_2 );    }