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.fixtures.add(d1);
sc.fixtures.add(new ExecutionTrace());
int size = sc.fixtures.size();
String xml = ScenarioXMLPersistence.getInstance().marshal(sc);
Scenario sc_ = ScenarioXMLPersistence.getInstance().unmarshal(xml);
assertEquals(size, sc_.fixtures.size());
sc = new Scenario();
sc.fixtures.add(new ExecutionTrace());
xml = ScenarioXMLPersistence.getInstance().marshal(sc);
sc_ = ScenarioXMLPersistence.getInstance().unmarshal(xml);
assertEquals(1, sc_.fixtures.size());
}