// clear cache every 3 seconds
statefulContainerInfo.properties.setProperty("Frequency", "3");
assembler.createContainer(statefulContainerInfo);
EjbJar ejbJar = new EjbJar();
Timeout timeout;
StatefulBean bean1 = new StatefulBean("BeanNegative", MyLocalBeanImpl.class);
timeout = new Timeout();
timeout.setTimeout(-1);
timeout.setUnit(TimeUnit.SECONDS);
bean1.setStatefulTimeout(timeout);
StatefulBean bean0 = new StatefulBean("BeanZero", MyLocalBeanImpl.class);
timeout = new Timeout();
timeout.setTimeout(0);
timeout.setUnit(TimeUnit.SECONDS);
bean0.setStatefulTimeout(timeout);
StatefulBean bean5 = new StatefulBean("Bean", MyLocalBeanImpl.class);
timeout = new Timeout();
timeout.setTimeout(5);
timeout.setUnit(TimeUnit.SECONDS);
bean5.setStatefulTimeout(timeout);
ejbJar.addEnterpriseBean(bean1);
ejbJar.addEnterpriseBean(bean0);
ejbJar.addEnterpriseBean(bean5);