@Test
public void testNarrow() {

    StringBuilder builder = new StringBuilder();
    Document document = new StringBuilderDocument(builder);
    String propertyName = "pi";
    expect(reference1.narrow(String.class)).andReturn(reference1);
    expect(reference2.narrow(String.class)).andReturn(reference2);
    expect(reference1.getType()).andReturn(String.class).times(2);
    expect(reference2.getType()).andReturn(String.class).times(2);
    expect(reference1.getReferenceContext()).andReturn(context).times(2);
    expect(reference2.getReferenceContext()).andReturn(context).times(2);
    replay(reference1, reference2, context);
    MultiReference multi = new MultiReference(reference1, reference2);
    multi.narrow(String.class);
    verify(reference1, reference2, context);
}