public void testJsr250() {
Bus bus = new SpringBusFactory().createBus("org/apache/cxf/bus/spring/testjsr250.xml");
TestExtension te = bus.getExtension(TestExtension.class);
assertTrue("@PostConstruct annotated method has not been called.", te.postConstructMethodCalled);
assertTrue("@PreDestroy annoated method has been called already.", !te.preDestroyMethodCalled);
bus.shutdown(true);
assertTrue("@PreDestroy annotated method has not been called.", te.preDestroyMethodCalled);
}
@Test