* @param max The value of metric.getMaximum() after buildGraph.
* @param expect An array of {tr1,cov1, tr2,cov2, ..., trN,covN}
*/
public void FsmCoverage(CoverageMetric metric, int max, int... expect)
{
RandomTester tester = new RandomTester(new FSM());
tester.addListener(metric);
// System.out.println("Testing "+metric.getName());
Assert.assertEquals(0, metric.getCoverage());
if (metric.getMaximum() != -1) {
Assert.assertEquals(max, metric.getMaximum()); // should be correct or -1