*/
public void testClone() {
prototype.setAssociationType(AssociationType.COMPOSITION);
prototype.setShowName(true);
prototype.setShowMultiplicities(false);
Association cloned = (Association) prototype.clone();
assertEquals(prototype.getAssociationType(), cloned.getAssociationType());
assertEquals(parent, cloned.getMultiplicity1Label().getParent());
assertEquals(parent, cloned.getMultiplicity2Label().getParent());
assertEquals(parent, cloned.getNameLabel().getParent());
assertTrue(cloned.getMultiplicity1Label() !=
prototype.getMultiplicity1Label());
assertTrue(cloned.getMultiplicity1Label() !=
prototype.getMultiplicity2Label());
assertTrue(cloned.getNameLabel() != prototype.getNameLabel());
assertNotNull(cloned.getMultiplicity1Label().getSource());
assertNotNull(cloned.getMultiplicity2Label().getSource());
assertNotNull(cloned.getNameLabel().getSource());
assertTrue(cloned.getMultiplicity1Label().getSource() !=
prototype.getMultiplicity1Label().getSource());
assertTrue(cloned.getMultiplicity2Label().getSource() !=
prototype.getMultiplicity1Label().getSource());
assertTrue(cloned.getNameLabel().getSource() == cloned.getNameLabel());
assertTrue(cloned.showName());
assertFalse(cloned.showMultiplicities());
}