}
/** This tests a random walk, plus ActionCoverage metric with history.*/
public static void testRandomWalk()
{
ModelTestCase model = new ModelTestCase(new FSM());
CoverageHistory metric = new CoverageHistory(new ActionCoverage(), 1);
model.addCoverageMetric(metric);
model.randomWalk(4); // 4 transitions plus a few resets
int coverage = metric.getCoverage();
Assert.assertEquals(3, coverage);