model.addListener("graph");
assertTrue(model.getListener("graph") instanceof GraphListener);
assertEquals(model.getGraphListener(), model.getListener("graph"));
assertEquals(1, model.getListenerNames().size());
assertEquals(model.getGraphListener(), new RandomTester(model).buildGraph());
model.addListener(new TransitionCoverage());
TransitionCoverage tr = (TransitionCoverage) model.getListener("transition coverage");
assertEquals(2, model.getListenerNames().size());
assertEquals(5, tr.getMaximum()); // it should have been given the graph
assertEquals("0/5", tr.toString());
model.removeAllListeners();
assertEquals(0, model.getListenerNames().size());
}