public EjbJar app() throws Exception {
final EjbJar ejbJar = new EjbJar("bval-interceptor");
final StatelessBean bean1 = new StatelessBean(ManagerBean.class);
bean1.addBusinessLocal(Manager.class);
bean1.setLocalBean(new Empty());
final StatelessBean bean3 = new StatelessBean(ManagerBean2.class);
bean3.addBusinessRemote(ManagerRemote.class);
bean3.addBusinessLocal(Manager.class);
bean3.setLocalBean(new Empty());
final StatelessBean bean2 = new StatelessBean(ManagerLocalBean.class);
bean2.setLocalBean(new Empty());
ejbJar.addEnterpriseBean(bean1);
ejbJar.addEnterpriseBean(bean2);
ejbJar.addEnterpriseBean(bean3);