}
public void testUpdateMultipleModifier() throws Throwable
{
template.clean();
SimpleBean bean1 = new SimpleBean("lior_Update1", 1);
SimpleBean bean2 = new SimpleBean("lior_Update2", 1);
template.write(bean1, Lease.FOREVER);
template.write(bean2, Lease.FOREVER);
SimpleBean templateBean1 = new SimpleBean("lior_Update1", 2);
SimpleBean templateBean2 = new SimpleBean("lior_Update2", 3);
Object[] taken = template.updateMultiple(new SimpleBean[] {templateBean1,
templateBean2/*bean1,bean2*/ }, new long[] { Lease.FOREVER,
Lease.FOREVER }, UpdateModifiers.UPDATE_ONLY);
assertEquals("The bean are equal!", 2, taken.length);
}