expect(selected1.getReferenceContext()).andReturn(context);
replay(reference1, reference2, selected1, selected2);
MultiReference multi = new MultiReference(reference1, reference2);
Reference selected = multi.selectAttribute(propertyName);
assertNotNull(selected);
selected.document(document);
verify(reference1, reference2, selected1, selected2);
}
@Test
public void testNarrow() {