EjbJar ejbJar = new EjbJar();
StatefulBean bean = ejbJar.addEnterpriseBean(new StatefulBean(TargetBean.class));
bean.setHomeAndRemote(TargetHome.class, Target.class);
assembler.createApplication(config.configureApplication(new EjbModule(getClass().getClassLoader(), getClass().getSimpleName(), "test", ejbJar, null)));
calls.clear();
InitialContext ctx = new InitialContext();
TargetHome home = (TargetHome) ctx.lookup("TargetBeanRemoteHome");