"spring.yarn.appmaster.containercluster.enabled:true");
context.register(ContainerClusterStateMachineConfiguration.class, TestConfig1WithClass.class,
YarnAppmasterAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class);
context.refresh();
assertNotNull(context.getBean(YarnAppmaster.class));
YarnAppmaster appmaster = context.getBean(YarnAppmaster.class);
GridProjectionFactoryLocator locator = TestUtils.readField("gridProjectionFactoryLocator", appmaster);
Set<GridProjectionFactory> factories = TestUtils.readField("factories", locator);
assertThat(factories.size(), is(1));
GridProjectionFactory factory = factories.iterator().next();
assertThat(factory.getRegisteredProjectionTypes().size(), is(1));