expect(source1.eAllContents()).andReturn(newTreeIterator(elist(e1)));
expect(source1.eAllContents()).andReturn(newTreeIterator(elist(e1)));
expect(source1.eAllContents()).andReturn(newTreeIterator(elist(e1)));
Grammar source2 = createMock(Grammar.class);
expect(source2.eAllContents()).andReturn(newTreeIterator(elist(e1, e2)));
expect(source2.eAllContents()).andReturn(newTreeIterator(elist(e1, e2)));
expect(source2.eAllContents()).andReturn(newTreeIterator(elist(e1, e2)));
expect(source2.eAllContents()).andReturn(newTreeIterator(elist(e1, e2)));
Object[] mocks = {source1, source2, e1, e2 };