appmaster.setTaskExecutor(new SyncTaskExecutor());
appmaster.setConfiguration(new Configuration());
appmaster.setAllocator(allocator);
appmaster.setLauncher(launcher);
GridProjectionFactoryRegistry registry = new GridProjectionFactoryRegistry();
registry.addGridProjectionFactory(new DefaultGridProjectionFactory());
appmaster.setGridProjectionFactoryLocator(registry);
appmaster.setProjectionDataRegistry(new ProjectionDataRegistry(null));
// appmaster.setGridProjectionFactory(new DefaultGridProjectionFactory());
TestUtils.callMethod("onInit", appmaster);