@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(marathon.getLength(), 42);
bean.destroy(marathon, creationalContext);
assertTrue(LifecycleInterceptor.isPreDestroyCalled());