* bean info class.
*/
public void testInitialize_Normal() throws Exception {
CollectingEncoder enc;
MockPersistenceDelegate pd = new MockPersistenceDelegate();
MockFoo oldBean;
MockFoo newBean;
enc = new CollectingEncoder();
oldBean = new MockFoo();
oldBean.setName("myName");
oldBean.setLabel("myLabel");
pd.writeObject(oldBean, enc);
enc.clearCache();
pd.initialize(MockFoo.class, oldBean, new MockFoo(), enc);
assertNotNull(findStatement(enc.statements(), oldBean, "setName",
new Object[] { oldBean.getName() }));
assertNotNull(findStatement(enc.statements(), oldBean, "setLabel",
new Object[] { oldBean.getLabel() }));
enc = new CollectingEncoder();
oldBean = new MockFoo();
oldBean.setComplexLabel(new MockFooLabel("myComplexLabel"));
pd.writeObject(oldBean, enc);
newBean = new MockFoo();
newBean.setComplexLabel(new MockFooLabel("complexLabel2"));
pd.writeObject(newBean, enc);
enc.clearCache();
pd.initialize(MockFoo.class, oldBean, newBean, enc);
}