### Question:
UpgradeTool { @VisibleForTesting Injector createInjector() { return Guice.createInjector( new ConfigModule(cConf, hConf), new DFSLocationModule(), new ZKClientModule(), new ZKDiscoveryModule(), new MessagingClientModule(), Modules.override(new DataSetsModules().getDistributedModules()).with( new AbstractModule() { @Override protected void configure() { bind(DatasetFramework.class).to(InMemoryDatasetFramework.class).in(Scopes.SINGLETON); bind(DatasetFramework.class) .annotatedWith(Names.named(DataSetsModules.BASE_DATASET_FRAMEWORK)) .to(DatasetFramework.class); bind(DatasetDefinitionRegistryFactory.class) .to(DefaultDatasetDefinitionRegistryFactory.class).in(Scopes.SINGLETON); bind(LineageWriter.class).to(NoOpLineageWriter.class); bind(FieldLineageWriter.class).to(NoOpLineageWriter.class); } } ), new TwillModule(), new ExploreClientModule(), new ProgramRunnerRuntimeModule().getDistributedModules(), new SystemDatasetRuntimeModule().getDistributedModules(), new KafkaClientModule(), new AuthenticationContextModules().getMasterModule(), new AuthorizationModule(), new AuthorizationEnforcementModule().getMasterModule(), new SecureStoreServerModule(), new DataFabricModules(UpgradeTool.class.getName()).getDistributedModules(), new AppFabricServiceRuntimeModule().getDistributedModules(), new KafkaLogAppenderModule(), new AbstractModule() { @Override protected void configure() { bind(MetricsCollectionService.class).toInstance(new NoOpMetricsCollectionService()); bind(MetricsSystemClient.class).toInstance(new NoOpMetricsSystemClient()); } @Provides @Singleton @Named("datasetInstanceManager") @SuppressWarnings("unused") public DatasetInstanceManager getDatasetInstanceManager(TransactionRunner transactionRunner) { return new DatasetInstanceManager(transactionRunner); } @Provides @Singleton @Named("datasetMDS") @SuppressWarnings("unused") public DatasetFramework getInDsFramework(DatasetFramework dsFramework) { return dsFramework; } }, new AbstractModule() { @Override protected void configure() { bind(MetadataServiceClient.class).to(NoOpMetadataServiceClient.class); } } ); } UpgradeTool(); static void main(String[] args);  }### Answer:
@Test public void testUpgradeToolInjector() throws Exception { new UpgradeTool().createInjector(); }