Port p = comp1.getPortByName("p");
assertNotNull(p);
assertEquals(p.getParent(), comp1);
Role role = p.getRoles().get(0);
assertNotNull(role);
assertEquals(role.getParent(), p);
assertEquals("CallerRole", role.getStyleType());
assertEquals("caller1", role.getName());
assertEquals(RoleDirection.out, role.getDirection());
Role role2 = p.getRoles().get(1);
assertNotNull(role2);
assertEquals("caller2", role2.getName());
assertEquals(RoleDirection.in, role2.getDirection());
Connector conn = architecture.getConnectorByName("Connector1");
assertNotNull(conn);
assertEquals(2, conn.getRoles().size());
assertEquals(role.getConnector(), conn);