protected static ManagedContainerClusterAppmaster createManagedAppmaster() throws Exception {
ManagedContainerClusterAppmaster appmaster = new ManagedContainerClusterAppmaster();
appmaster.setConfiguration(new Configuration());
GridProjectionFactoryRegistry registry = new GridProjectionFactoryRegistry();
registry.addGridProjectionFactory(new DefaultGridProjectionFactory());
appmaster.setGridProjectionFactoryLocator(registry);
appmaster.setProjectionDataRegistry(new ProjectionDataRegistry(null));
// appmaster.setGridProjectionFactory(new DefaultGridProjectionFactory());
TestUtils.callMethod("onInit", appmaster);