* Tests the creation of an Association.
*/
public void testCreateAssociation() {
mockElementFactory.expects(atLeastOnce()).method("create").
with(eq(ElementType.CLASS)).will(returnValue(clss));
ClassElement class1 = factory.createClass();
ClassElement class2 = factory.createClass();
Association conn = (Association) factory.createConnection(
RelationType.ASSOCIATION, class1, class2);
assertEquals(class1, conn.getNode1());
assertEquals(class2, conn.getNode2());
assertEquals(1, class1.getConnections().size());
assertEquals(1, class2.getConnections().size());
assertNull(conn.getParent());
}