public void test() throws Exception {
System.setProperty(javax.naming.Context.INITIAL_CONTEXT_FACTORY, InitContextFactory.class.getName());
ConfigurationFactory config = new ConfigurationFactory();
Assembler assembler = new Assembler();
assembler.createProxyFactory(config.configureService(ProxyFactoryInfo.class));
assembler.createTransactionManager(config.configureService(TransactionServiceInfo.class));
assembler.createSecurityService(config.configureService(SecurityServiceInfo.class));
// containers
assembler.createContainer(config.configureService(StatefulSessionContainerInfo.class));
EjbJarInfo ejbJar = config.configureApplication(buildTestApp());
assertNotNull(ejbJar);
assertEquals(1, ejbJar.enterpriseBeans.size());
assertEquals(1, ejbJar.enterpriseBeans.get(0).aroundInvoke.size());
assertEquals(1, ejbJar.enterpriseBeans.get(0).postConstruct.size());
assertEquals(3, ejbJar.interceptors.size());
assertEquals(1, ejbJar.interceptors.get(0).aroundInvoke.size());
assertEquals(1, ejbJar.interceptors.get(0).postConstruct.size());
assertEquals(3, ejbJar.interceptorBindings.size());
assembler.createApplication(ejbJar);
InitialContext ctx = new InitialContext();
Target target = (Target) ctx.lookup("TargetBeanLocal");
target.echo(new ArrayList());