@SuppressWarnings({ "unchecked", "rawtypes" })
public void testLifecycleInterceptor() {
Bean bean = beanManager.getBeans(Marathon.class).iterator().next();
CreationalContext creationalContext = beanManager.createCreationalContext(bean);
Marathon marathon = (Marathon) bean.create(creationalContext);
assertTrue(LifecycleInterceptor.isPostConstructCalled());
assertEquals(42, marathon.getLength());
bean.destroy(marathon, creationalContext);
assertTrue(LifecycleInterceptor.isPreDestroyCalled());