AbstractTextboxContainer extends AbstractFrameContainer implements TextboxContainer { public Textbox addTextbox() { Textbox textbox = Textbox.newTextbox(this); return textbox; }  Textbox addTextbox(); boolean removeTextbox(Textbox box); Iterator<Textbox> getTextboxIterator(); Textbox addTextbox(FrameRectangle position); Textbox getTextboxByName(String name); List<Textbox> getTextboxByUsage(PresentationDocument.PresentationClass usage);  }
@Test public void testAddTextbox() { try { TextDocument textDoc = TextDocument.newTextDocument(); Paragraph p = textDoc.addParagraph("abc"); Textbox box1 = p.addTextbox(); box1.setTextContent("content XXXX"); textDoc.save(ResourceUtilities.newTestOutputFile("textsample.odt")); } catch (Exception e) { Logger.getLogger(AbstractTextboxContainerTest.class.getName()).log(Level.SEVERE, null, e); Assert.fail(); } }