//Sample data
FactData d1 = new FactData("Driver", "d1", ls(new FieldData[] {new FieldData("age", "42"), new FieldData("name", "david")}), false);
FactData d2 = new FactData("Driver", "d2", ls(new FieldData[] {new FieldData("name", "michael")}), false);
FactData d3 = new FactData("Driver", "d3", ls(new FieldData[] {new FieldData("name", "michael2")}), false);
FactData d4 = new FactData("Accident", "a1", ls(new FieldData[] {new FieldData("name", "michael2")}), false);
Scenario sc = new Scenario();
sc.getFixtures().add(d1);
sc.getFixtures().add(d2);
sc.getGlobals().add(d3);
sc.getGlobals().add(d4);
sc.getRules().add("rule1");
sc.getRules().add("rule2");
sc.getFixtures().add(new ExecutionTrace());
List fields = new ArrayList();
VerifyField vfl = new VerifyField("age", "42", "==");
vfl.setActualResult( "43" );
vfl.setSuccessResult( new Boolean(false) );
vfl.setExplanation( "Not cool jimmy." );
fields.add(vfl);
vfl = new VerifyField("name", "michael", "!=");
vfl.setActualResult( "bob" );
vfl.setSuccessResult( new Boolean(true) );
vfl.setExplanation( "Yeah !" );
fields.add(vfl);
VerifyFact vf = new VerifyFact("d1", fields);
sc.getFixtures().add(vf);
VerifyRuleFired vf1 = new VerifyRuleFired("Life unverse and everything", new Integer(42), null);
vf1.setActualResult( new Integer(42) );
vf1.setSuccessResult( new Boolean(true) );
vf1.setExplanation( "All good here." );
VerifyRuleFired vf2 = new VerifyRuleFired("Everything else", null, new Boolean(true));
vf2.setActualResult( new Integer(0) );
vf2.setSuccessResult( new Boolean(false) );
vf2.setExplanation( "Not so good here." );
sc.getFixtures().add(vf1);
sc.getFixtures().add(vf2);
return sc;
}