/**
* Test newConnectorPersistentStore.
*/
public void testNewConnectorPersistentStore() throws Exception {
JdbcDatabase database = new TestJdbcDatabase();
ConnectorPersistentStoreFactory factory =
new ConnectorPersistentStoreFactory(database);
ConnectorPersistentStore cpStore =
factory.newConnectorPersistentStore("test", "TestConnectorA", null);
assertNotNull(cpStore);
LocalDatabase localDb = cpStore.getLocalDatabase();
assertNotNull(localDb);
assertSame(database.getDataSource(), localDb.getDataSource());
assertEquals(database.getDatabaseType(), localDb.getDatabaseType());
assertNull(cpStore.getLocalDocumentStore());
}