@Test
public void exportToXml_alternative() throws PlanningException {
Plan p = generateBasicPlan();
AlternativesDefinition alternativesDefinition = new AlternativesDefinition();
alternativesDefinition.setDescription("Description");
Alternative alt1 = generateAlternative("Alternative 1");
alternativesDefinition.addAlternative(alt1);
Alternative alt2 = generateAlternative("Alternative 2");
alternativesDefinition.addAlternative(alt2);
p.setAlternativesDefinition(alternativesDefinition);
Document doc = exporter.exportToXml(p);
assertThat(getNodes(doc, "/plans/p:plan/p:alternatives/p:alternative").size(), is(2));