@Test
public void testCopyUsingCloningWithSimpleCollectionGroupSucceeds() {

    CollectionGroup collectionGroupOriginal = initializeCollectionGroup();
    CollectionGroup collectionGroupCopy = CopyUtils.copy(collectionGroupOriginal);
    assertTrue(ComponentCopyPropertiesMatch(collectionGroupOriginal, collectionGroupCopy));
    for (int i = 0; i < collectionGroupOriginal.getAddLineItems().size(); i++) {
        assertTrue(ComponentCopyPropertiesMatch(
                CopyUtils.unwrap((ComponentBase) collectionGroupOriginal.getAddLineItems().get(i)),
                CopyUtils.unwrap((ComponentBase) collectionGroupCopy.getAddLineItems().get(i))));
    }
    for (int i = 0; i < collectionGroupOriginal.getAddLineActions().size(); i++) {
        assertTrue(ComponentCopyPropertiesMatch(
                CopyUtils.unwrap((Component) collectionGroupOriginal.getAddLineActions().get(i)),
                CopyUtils.unwrap((Component) collectionGroupCopy.getAddLineActions().get(i))));
    }
}