private static final String UPDATE_TIMESTAMP_KEY = "updatetimestamp";
@Before
public void setUp() throws CRException {
CRResolvableBean mr = new CRResolvableBean("10001.1");
mr.set(PHPContentRepositoryTest.UPDATE_TIMESTAMP_KEY, new Long(111111111L));
Map<String, String[]> suggestions = new HashMap<String, String[]>();
suggestions.put("tst", new String[]{"test", "tess"});
mr.set("suggestions", suggestions);
beanCollection.add(mr);
CRResolvableBean b1 = new CRResolvableBean("10002.1");
b1.set(PHPContentRepositoryTest.UPDATE_TIMESTAMP_KEY, new Long(111111111L));
beanCollection.add(b1);
CRResolvableBean b2 = new CRResolvableBean("10002.2");
b2.set(PHPContentRepositoryTest.UPDATE_TIMESTAMP_KEY, new Long(111211111L));
beanCollection.add(b2);
CRResolvableBean b3 = new CRResolvableBean("10002.3");
b3.set(PHPContentRepositoryTest.UPDATE_TIMESTAMP_KEY, new Long(131111011L));
beanCollection.add(b3);
CRResolvableBean b4 = new CRResolvableBean("10002.4");
b4.set(PHPContentRepositoryTest.UPDATE_TIMESTAMP_KEY, new Long(111111011L));
beanCollection.add(b4);
Collection<CRResolvableBean> children = new Vector<CRResolvableBean>();
CRResolvableBean c1 = new CRResolvableBean("10002.5");
c1.set(PHPContentRepositoryTest.UPDATE_TIMESTAMP_KEY, new Long(141111011L));
children.add(c1);
CRResolvableBean c2 = new CRResolvableBean("10002.6");
c2.set(PHPContentRepositoryTest.UPDATE_TIMESTAMP_KEY, new Long(151111011L));
c2.set("permissions", new String[] { "mar, sal, soc" });
children.add(c2);
b3.setChildRepository(children);
}