Tester tester = new RandomTester(new ECinema());
// The guards make this a more difficult graph to explore, but we can
// increase the default maximum search to complete the exploration.
GraphListener graph = tester.buildGraph(100000);
graph.printGraphDot("ecinema.dot");
CoverageMetric trans = tester.addCoverageMetric(new TransitionCoverage());
CoverageMetric trpairs = tester.addCoverageMetric(new TransitionPairCoverage());
CoverageMetric states = tester.addCoverageMetric(new StateCoverage());
CoverageMetric actions = tester.addCoverageMetric(new ActionCoverage());
tester.addListener("verbose");
// this illustrates how to generate tests upto a given level of coverage.