postProcessor.postProcessAfterInitialization(testBean, "testBean");
context.refresh();
assertTrue(context.containsBean("testBean.test.onContainerStart"));
Object endpoint = context.getBean("testBean.test.onContainerStart");
assertTrue(endpoint instanceof ContainerHandler);
context.stop();
}
@YarnComponent
private static class TestBean {