log.println("gained for paragraph 1 "+types[relationtypes[0]]);
res = types[1].equals(types[relationtypes[0]]);
assure("didn't gain correct relation type",res);
log.println("Text of target paragraph "+atargets[0].getText());
XAccessibleText paraTxt1 =
(XAccessibleText) UnoRuntime.queryInterface(XAccessibleText.class, para1);
assure("didn't gain correct target paragraph",
atargets[0].getText().equals(paraTxt1.getText()) );
log.println("### Checking "+types[2]+" for paragraph 1");
log.println("Expected for paragraph 1 "+types[2]);
log.println("gained for paragraph 1 "+types[relationtypes[1]]);
res = types[2].equals(types[relationtypes[1]]);
assure("didn't gain correct relation type",res);
log.println("Text of target paragraph "+atargets[1].getText());
XAccessibleText paraTxt3 =
(XAccessibleText) UnoRuntime.queryInterface(XAccessibleText.class, para3);
assure("didn't gain correct target paragraph",
atargets[1].getText().equals(paraTxt3.getText()) );
}