@Test
public void testReplaceWithConditionField() {
try {
search = new TextNavigation("ReplaceConditionTarget", doc);
// declare simple variable
VariableField simpleVariableField = Fields.createSimpleVariableField(doc, "test_con_variable");
OdfTextParagraph varParagraph = doc.newParagraph("test_con_variable:");
simpleVariableField.updateField("true", varParagraph);
// count the initial date field count.
OdfContentDom contentDom = doc.getContentDom();
NodeList nodeList = contentDom.getElementsByTagName(TextConditionalTextElement.ELEMENT_NAME.getQName());
int i = nodeList.getLength();
OdfStylesDom styleDom = doc.getStylesDom();