@Test
public void testSpaces() throws Exception {
Map params = new HashMap();
params.put(ShapefileDataStoreFactory.URLP.key, tempDir.toURI().toURL());
params.put(ShapefileDataStoreFactory.NAMESPACEP.key, "http://www.geotools.org");
ShapefileDirectoryFactory factory = new ShapefileDirectoryFactory();
assertTrue(factory.canProcess(params));
DataStore store = factory.createDataStore(params);
assertNotNull(store);
assertEquals(2, store.getNames().size());
store.dispose();
}