public EjbJar test() throws Exception {
EjbJar ejbJar = new EjbJar();
StatelessBean testBean = ejbJar.addEnterpriseBean(new StatelessBean("TestStateless", TestBean.class));
testBean.addAroundInvoke("wrongMethod");
testBean.addPostConstruct("wrongMethod");
ejbJar.addEnterpriseBean(new SingletonBean("TestSingleton", TestBean.class));
ejbJar.addEnterpriseBean(new StatefulBean("FooStateful", FooBean.class));
ejbJar.addEnterpriseBean(new StatefulBean("BarStateful", BarBean.class));
StatefulBean starBean = ejbJar.addEnterpriseBean(new StatefulBean("StarStateful", StarBean.class));
starBean.setAfterBeginMethod(new NamedMethod("myAfterBegin"));
starBean.setBeforeCompletionMethod(new NamedMethod("myBeforeCompletion"));