@Test
@Ignore //TODO: revisit
public void testCreateDataStore_SessionPool() throws IOException {

    String jndiRef = "MyArcSdeResource_SessionPool";
    Map<String, Serializable> params = new HashMap<String, Serializable>();
    params.put(ArcSDEJNDIDataStoreFactory.JNDI_REFNAME.key, jndiRef);
    ISessionPool pool = testData.getConnectionPool();
    try {
        InitialContext initialContext = GeoTools.getInitialContext(GeoTools.getDefaultHints());
        initialContext.bind(jndiRef, pool);
        assertNotNull(initialContext.lookup(jndiRef));
    } catch (NamingException e) {
        throw new RuntimeException(e);
    }
    ArcSDEDataStore dataStore = (ArcSDEDataStore) factory.createDataStore(params);
    assertNotNull(dataStore);
    ISession session = dataStore.getSession(Transaction.AUTO_COMMIT);
    assertNotNull(session);
    session.dispose();
}