@@ -0,0 +1,1160 @@
+package org.pm4j.core.pm.impl;%0A%0Aimport static junit.framework.Assert.*;%0A%0Aimport org.junit.Test;%0Aimport org.pm4j.core.pm.PmConversation;%0Aimport org.pm4j.core.pm.PmObject;%0Aimport org.pm4j.core.pm.annotation.PmBeanCfg;%0A%0Apublic class PmBeanBaseTest %7B%0A  @Test%0A  public void testPmBeanBaseNested() %7B%0A    PmConversation session = new PmConversationImpl();%0A    MyPmBeanBase beanBase = new MyPmBeanBase();%0A    beanBase.setPmParent(session);%0A    MyBean bean1 = new MyBean();%0A    beanBase.setPmBean(bean1);%0A    assertSame(%22bean must be propagated to nested elements%22, bean1, beanBase.nested.getPmBean());%0A%0A    MyBean bean2 = new MyBean();%0A    beanBase.reloadPmBean(bean2);%0A    assertSame(%22bean reloads must be propagated to nested elements%22, bean2, beanBase.nested.getPmBean());%0A  %7D%0A%0A  static class MyBean %7B%0A%0A  %7D%0A%0A  @PmBeanCfg(beanClass = MyBean.class)%0A  static class MyPmBeanBase extends PmBeanBase%3CMyBean%3E %7B%0A    public final MyPmBeanNested nested = new MyPmBeanNested(this);%0A  %7D%0A%0A  @PmBeanCfg(beanClass = MyBean.class)%0A  static class MyPmBeanNested extends PmBeanBase.Nested%3CMyBean%3E %7B%0A%0A    public MyPmBeanNested(PmObject parentPm) %7B%0A      super(parentPm);%0A    %7D%0A%0A  %7D%0A%7D%0A

Test for d64d225e8d1c6339eb5a95