public void testDbApdater() throws Exception {
Log log = mock(Log.class);
Injector i = DIBootstrap.createInjector(new ToolsModule(log));
DbAdapterFactory factory = i.getInstance(DbAdapterFactory.class);
DataNodeDescriptor nodeDescriptor = mock(DataNodeDescriptor.class);
DataSource dataSource = mock(DataSource.class);
assertTrue(factory.createAdapter(nodeDescriptor, dataSource) instanceof AutoAdapter);
}