r2.setValue("class", Symbol.define("UserGroupAssoc"));
r2.setValue("attributes", parse("(user group)"));
r2.setValue("orderBy", parse("(((@) . #t))"));
InstanceList p = new InstanceArrayList();
p.add(r1);
r2.setValue("parents", p);
List a = new ArrayList();
a.add(parse("(ugassocs)"));
r2.setValue("associations", a);
r2.setValue("dispatchParent", r1);
r2.setValue("dispatchAttribute", null);
r2.setValue("dispatchValues", parse("(Group)"));
AssertUtil.assertEquals(getURL("readFMDispatch1.xml"), r2.invoke("read"), parse("(user group)"));
r2 = new Instance(getMetadata().getMetaclass("SysReader"), Instance.NEW, m_context);
r2.setValue("class", Symbol.define("UserGroupAssoc"));
r2.setValue("attributes", parse("(user group)"));
r2.setValue("orderBy", parse("(((@) . #t))"));
p = new InstanceArrayList();
p.add(r1);
r2.setValue("parents", p);
a = new ArrayList();
a.add(parse("(ugassocs)"));
r2.setValue("associations", a);
r2.setValue("dispatchParent", r1);
r2.setValue("dispatchAttribute", parse("(typeCode)"));
r2.setValue("dispatchValues", parse("(\"G\")"));
AssertUtil.assertEquals(getURL("readFMDispatch2.xml"), r2.invoke("read"), parse("(user group)"));
Instance r3 = new Instance(getMetadata().getMetaclass("SysReader"), Instance.NEW, m_context);
r3.setValue("class", Symbol.define("Principal"));
r3.setValue("attributes", parse("(name)"));
r3.setValue("orderBy", parse("(((@ name) . #t))"));
p = new InstanceArrayList();
p.add(r1);
r3.setValue("parents", p);
a = new ArrayList();
a.add(null);
r3.setValue("associations", a);