PlainTextContent { public static SdtBlock createSdtBlockElement() { SdtBlock block = wFactory.createSdtBlock(); block.setSdtPr(createDefaultSdtProperties()); block.setSdtContent(wFactory.createSdtContentBlock()); return block; } PlainTextContent(SdtElement sdtElement); static SdtBlock createSdtBlockElement(); String getExpression(); void setExpression(String expression); boolean hasExpression(); void setTitle(String value); void setPlaceHolderContent(String text); void setContent(String value); void hideMarkers(); void showMarkgers(); static boolean isPlainTextContent(SdtElement element);  }
@Test public void testCreateSdtBlockElement() { SdtElement element = PlainTextContent.createSdtBlockElement(); String text = XmlUtils.marshaltoString(element, true); String expectedContent = "<w:sdtPr>" + "<w:tag/>" + "<w:text/>" + "<w:showingPlcHdr/>" + "<w15:appearance w15:val=\"tags\"/>" + "</w:sdtPr>" + "<w:sdtContent/>"; assertTrue(text.contains(expectedContent)); }