@Test
public void testNewScenario() {
FactData d1 = new FactData("Driver", "d1", ls(new FieldData[] {new FieldData("age", "42"), new FieldData("name", "david")}), false);
Scenario sc = new Scenario();
sc.getFixtures().add(d1);
sc.getFixtures().add(new ExecutionTrace());
int size = sc.getFixtures().size();
String xml = ScenarioXMLPersistence.getInstance().marshal(sc);
Scenario sc_ = ScenarioXMLPersistence.getInstance().unmarshal(xml);
assertEquals(size, sc_.getFixtures().size());
sc = new Scenario();
sc.getFixtures().add(new ExecutionTrace());
xml = ScenarioXMLPersistence.getInstance().marshal(sc);
sc_ = ScenarioXMLPersistence.getInstance().unmarshal(xml);
assertEquals(1, sc_.getFixtures().size());
}