ConnectorTestUtils.deleteAllFiles(connectorDir);
// Then recreate it empty
assertTrue(ConnectorTestUtils.mkdirs(connectorDir));
// Force use of FileStore PersistentStore.
FileStore fileStore = new FileStore();
fileStore.setTypeMap(typeMap);
InstanceInfo.setPersistentStore(fileStore);
// Jam a properties file with encrypted passwords into the connector dir,
// making it look like it was persisted.
Properties props = new Properties();