public static BeanItemContainer<TestBean> createContainer(int size,
long seed) {
BeanItemContainer<TestBean> container = new BeanItemContainer<TestBean>(
TestBean.class);
PortableRandom r = new PortableRandom(seed);
for (int i = 0; i < size; i++) {
container.addBean(new TestBean(r));
}
return container;