Bean bean = beanManager.getBeans(SimpleBeanWithStereotype.class).iterator().next();
CreationalContext creationalContext = beanManager.createCreationalContext(bean);
SimpleBeanWithStereotype simpleBean = (SimpleBeanWithStereotype) bean.create(creationalContext);
String result = simpleBean.doSomething();
assert "Hello!".equals(result);
bean.destroy(simpleBean, creationalContext);
assert SimpleInterceptor.aroundInvokeCalled;
assert SimpleInterceptor.postConstructCalled;
assert SimpleInterceptor.preDestroyCalled;
assert TwoBindingsInterceptor.aroundInvokeCalled;
assert SimpleBeanWithStereotype.postConstructCalled;