props.put(Context.OBJECT_FACTORIES, FBConnectionPoolDataSource.class.getName());
props.put(Context.OBJECT_FACTORIES,ClassFactory.get(ClassFactory.FBConnectionPoolDataSource).getName());
    public void testReferenceSupport() throws Exception {        Reference ref = new Reference(FBConnectionPoolDataSource.class.getName());                fillReference(ref);                String JNDI_FACTORY = "com.sun.jndi.fscontext.RefFSContextFactory";        Properties props = new Properties();        props.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);        props.put(Context.OBJECT_FACTORIES, FBConnectionPoolDataSource.class.getName());                Context ctx = new InitialContext(props);        try {            ctx.bind("jdbc/test", ref);                        Object obj = ctx.lookup("jdbc/test");                        assertTrue("Should provide correct data source", obj instanceof FBConnectionPoolDataSource);                        FBConnectionPoolDataSource ds = (FBConnectionPoolDataSource)obj;                        assertPoolConfiguration(ds);        } finally {            ctx.unbind("jdbc/test");        }    }    