PlainTextContent { public void setTitle(String value) { alias.setVal(value); } 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 testSetTitle() throws Exception { SdtElement element = createPlainTextContentControl(SdtBlock.class); PlainTextContent plainTextContent = new PlainTextContent(element); plainTextContent.setTitle("testLabel"); String xmlString = XmlUtils.marshaltoString( plainTextContent.getXmlElement(), true); assertTrue(xmlString + " has no alias set", xmlString.contains("<w:alias w:val=\"testLabel\"/>")); }