XmlWrapperManager manager = new XmlWrapperManager(targetAdapter);
assertEquals(manager.getConfiguration(), targetAdapter.getConfiguration());
AbstractManagedCollectionAdapter targetAdapter1 = manager.getTargetAdapter();
assertEquals(TestUtil.WRAPPER_CLASS, targetAdapter1.getClass().getName());
ManagedCollectionAdapterWrapper wrapper = ((ManagedCollectionAdapterWrapper) targetAdapter1);
assertEquals(TestUtil.TEST_WRAPPER3_CONFIG, wrapper.getWrapperConfig());
assertEquals(targetAdapter, targetAdapter1);
AbstractManagedCollectionAdapter targetAdapter2 = wrapper.getTargetAdapter();
assertEquals(XmlWrapperManager.class.getName(), targetAdapter2.getClass().getName());
wrapper = ((ManagedCollectionAdapterWrapper) targetAdapter2);
AbstractManagedCollectionAdapter targetAdapter3 = wrapper.getTargetAdapter();
assertEquals(TestUtil.WRAPPER_CLASS, targetAdapter3.getClass().getName());
wrapper = ((ManagedCollectionAdapterWrapper) targetAdapter3);
assertEquals(TestUtil.TEST_WRAPPER3_CONFIG, wrapper.getWrapperConfig());
AbstractManagedCollectionAdapter targetAdapter4 = wrapper.getTargetAdapter();
assertEquals(TestUtil.WRAPPER_CLASS, targetAdapter4.getClass().getName());
wrapper = ((ManagedCollectionAdapterWrapper) targetAdapter4);
assertEquals(TestUtil.TEST_WRAPPER2_CONFIG, wrapper.getWrapperConfig());
AbstractManagedCollectionAdapter targetAdapter5 = wrapper.getTargetAdapter();
assertEquals(TestUtil.WRAPPER_CLASS, targetAdapter5.getClass().getName());
wrapper = ((ManagedCollectionAdapterWrapper) targetAdapter5);
assertEquals(TestUtil.TEST_WRAPPER1_CONFIG, wrapper.getWrapperConfig());
AbstractManagedCollectionAdapter targetAdapter6 = wrapper.getTargetAdapter();
assertEquals(TestUtil.SAMPLE_ADAPTER_CLASS, targetAdapter6.getClass().getName());
}