DefaultDbAdapterFactory factory = new DefaultDbAdapterFactory(detectors);
injector.injectMembers(factory);
DbAdapter createdAdapter = factory.createAdapter(
new DataNodeDescriptor(),
new MockDataSource());
assertNotNull(createdAdapter);
assertTrue(
"Unexpected class: " + createdAdapter.getClass().getName(),
createdAdapter instanceof AutoAdapter);
assertEquals("CREATE TABLE Test ()", createdAdapter.createTable(new DbEntity(