public void testFetchQualifyingToMany() throws Exception {
CompoundPkTestEntity master = (CompoundPkTestEntity) context
.newObject("CompoundPkTestEntity");
CompoundPkTestEntity master1 = (CompoundPkTestEntity) context
.newObject("CompoundPkTestEntity");
CompoundFkTestEntity detail = (CompoundFkTestEntity) context
.newObject("CompoundFkTestEntity");
CompoundFkTestEntity detail1 = (CompoundFkTestEntity) context
.newObject("CompoundFkTestEntity");
master.addToCompoundFkArray(detail);
master1.addToCompoundFkArray(detail1);
master.setName("m1");
master.setKey1("key11");
master.setKey2("key21");
master1.setName("m2");
master1.setKey1("key12");
master1.setKey2("key22");
detail.setName("d1");
detail1.setName("d2");
context.commitChanges();
context.invalidateObjects(master, master1, detail, detail1);
Expression qual = ExpressionFactory.matchExp("compoundFkArray", detail1);