assertThat(getNode(doc, "/templates"), notNullValue());
}
@Test
public void exportToXml_planProperties() throws PlanningException {
Plan p = generateBasicPlan();
p.setPlanProperties(generatePlanProperties());
Document doc = exporter.exportToXml(p);
Element ppElement = (Element) getNode(doc, "/plans/p:plan/p:properties");
assertThat(ppElement.attributeValue("author"), is("Author"));
assertThat(ppElement.attributeValue("organization"), is("Organization"));
assertThat(ppElement.attributeValue("name"), is("Name"));
assertThat(ppElement.attributeValue("privateProject"), is("true"));
assertThat(ppElement.attributeValue("reportPublic"), is("true"));
assertThat(ppElement.attributeValue("repositoryIdentifier"), is("Repository ID"));
Element reportElement = getElement(doc, "/plans/p:plan/p:properties/p:report");
checkDigitalObject(reportElement, p.getPlanProperties().getReportUpload());
assertThat(getElement(doc, "/plans/p:plan/p:properties/p:state").attributeValue("value"), is("0"));
checkContentByName(ppElement, "p:description");
checkContentByName(ppElement, "p:owner");
}