Assert.assertEquals(t1, paragraph2);
t1 = doc.getParagraphByReverseIndex(2, false);
Assert.assertEquals(t1, paragraph1);
t1 = doc.getParagraphByReverseIndex(1, true);
Assert.assertEquals(t1, paragraph1);
doc.save(ResourceUtilities.newTestOutputFile("testGetParagraphByIndex.odt"));
} catch (Exception e) {
LOGGER.log(Level.SEVERE, e.getMessage(), e);
Assert.fail(e.getMessage());
}
}