}
search = new TextNavigation("#3", doc);
OdfElement description = search.nextSelection().getElement();
Node replacement = description.getNextSibling();
Assert.assertTrue(replacement instanceof TableTableElement);
Table table = Table.getInstance((TableTableElement) replacement);
String breakBefore = table.getStyleHandler()
.getTablePropertiesForRead().getBreakBefore();
Assert.assertNotNull(breakBefore);
description = search.nextSelection().getElement();
replacement = description.getNextSibling();
Assert.assertEquals("prefix", TextExtractor
.getText((TextParagraphElementBase) replacement));
Paragraph para = Paragraph
.getInstanceof((TextParagraphElementBase) replacement);
breakBefore = para.getStyleHandler()
.getParagraphPropertiesForRead().getBreakBefore();
Assert.assertNotNull(breakBefore);
replacement = replacement.getNextSibling();
Assert.assertTrue(replacement instanceof TableTableElement);
table = Table.getInstance((TableTableElement) replacement);
breakBefore = table.getStyleHandler().getTablePropertiesForRead()
.getBreakBefore();
Assert.assertNull(breakBefore);
replacement = replacement.getNextSibling();
Assert.assertEquals("suffix", TextExtractor
.getText((TextParagraphElementBase) replacement));
para = Paragraph
.getInstanceof((TextParagraphElementBase) replacement);
breakBefore = para.getStyleHandler()
.getParagraphPropertiesForRead().getBreakBefore();
Assert.assertNull(breakBefore);
description = search.nextSelection().getElement();
replacement = description.getNextSibling();
Assert.assertTrue(replacement instanceof TableTableElement);
table = Table.getInstance((TableTableElement) replacement);
String masterStyle = table.getStyleHandler()
.getStyleElementForRead()
.getAttribute("style:master-page-name");
Assert.assertNotNull(masterStyle);
} catch (Exception e) {
Logger.getLogger(TextSelectionTest.class.getName()).log(