if (nodeDescriptor.getAdapterType() != null) {
return (DbAdapter) Class.forName(
nodeDescriptor.getAdapterType()).newInstance();
}
return new MockDbAdapter();
}
});
binder.bind(DataSourceFactoryLoader.class).toInstance(
new MockDataSourceFactoryLoader());