}
@Test
public void testSections() {
// doc which contains a section, and two paras
DocumentElement doc = this.phraseFactory
.createDocument("Test Document");
DocumentElement section = this.phraseFactory
.createSection("Test Section");
doc.addComponent(section);
DocumentElement para1 = this.phraseFactory.createParagraph();
DocumentElement sent1 = this.phraseFactory
.createSentence("This is the first test paragraph");
para1.addComponent(sent1);
section.addComponent(para1);
DocumentElement para2 = this.phraseFactory.createParagraph();
DocumentElement sent2 = this.phraseFactory
.createSentence("This is the second test paragraph");
para2.addComponent(sent2);
section.addComponent(para2);
Assert