@Test
public void testInheritanceBeanLifeCycleStateless() {
assertEquals(0, statelessBean.getCounter());
assertEquals(0, statelessBean.getSuperLifeCycleCounter());
EasyBeansSLSBLifeCycle lifeCycle = getSLSBLifeCycle();
// postConstruct should increment the counter
lifeCycle.postConstructEasyBeansLifeCycle();
assertEquals(1, statelessBean.getCounter());
// and the counter of the super class
assertEquals(1, statelessBean.getSuperLifeCycleCounter());
// preDestroy should decrement the counter
lifeCycle.preDestroyEasyBeansLifeCycle();
assertEquals(0, statelessBean.getCounter());
assertEquals(0, statelessBean.getSuperLifeCycleCounter());
}