@Test
public void should_remove_import_from_store_if_an_error_occurs_when_importing() throws Exception {

    Import anImport = aMockedImport();
    when(importer.doImport(anImport)).thenThrow(ImportException.class);
    try {
        pathImporter.importFromPath(unzipedPath, importer);
        failBecauseExceptionWasNotThrown(ImportException.class);
    } catch (Exception e) {
        verify(importStore).remove(anImport.getUUID());
    }
}