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

    String jndiRef = "MyArcSdeResource";
    Map<String, Serializable> params = new HashMap<String, Serializable>();
    params.put(ArcSDEJNDIDataStoreFactory.JNDI_REFNAME.key, jndiRef);
    Map<String, Serializable> config = testData.getConProps();
    try {
        InitialContext initialContext = GeoTools.getInitialContext(GeoTools.getDefaultHints());
        initialContext.bind(jndiRef, config);
        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);
    try {
        assertEquals(String.valueOf(config.get("user")).toUpperCase(), session.getUser()
                .toUpperCase());
    } finally {
        session.dispose();
    }
}