@Test
public void testCreateDataStoreFileParams() throws Exception {

    Map<String, Serializable> fileParams = new HashMap<String, Serializable>(1);
    fileParams.put("file", file);
    FileDataStore dataStore = csvDataStoreFactory.createDataStore(fileParams);
    assertNotNull("Could not create datastore from file params", dataStore);
}