AbstractFormContainer implements FormContainer { public Form createForm(String name) { return getProvider().createForm(name, getFormContainerElement()); }  abstract OfficeFormsElement getFormContainerElement(); Form createForm(String name); boolean removeForm(Form form); Form getFormByName(String name); Iterator<Form> getFormIterator(); boolean getApplyDesignMode(); boolean getAutomaticFocus(); void setApplyDesignMode(boolean isDesignMode); void setAutomaticFocus(boolean isAutoFocus); void setProvider(FormProvider provider); FormProvider getProvider();  }
@Test public void testCreateForm() { try { TextDocument textDoc = TextDocument.loadDocument(ResourceUtilities .getTestResourceAsStream("TestCreateForm.odt")); Assert.assertNotNull(textDoc.getFormByName("Form1")); Assert.assertNotNull(textDoc.getFormByName("Form2")); Assert.assertNotNull(textDoc.getFormByName("Form3")); } catch (Exception e) { Logger.getLogger(AbstractFormContainerTest.class.getName()).log( Level.SEVERE, null, e); Assert.fail(); } }