}
public void testWrite() throws Exception
{
SimpleBean bean = new SimpleBean("ddd", 2);
bean.setTestboolean(true);
bean.setTestBooleanObject(new Boolean(true));
template.write(bean, -1);
SimpleBean template1 = new SimpleBean(null, 2);
template1.setTestboolean(true);
SimpleBean taken = (SimpleBean) template.take(template1, -1);
assertEquals("written object is not equal to taken one!", bean, taken);
}