public final void testDisplay()
{
LearnerGraph grA = buildLearnerGraph("A-a->B\nA-b->B","testCounterA",config,converter);
LearnerGraph grB = buildLearnerGraph("@A-a->@B\n@A-c->@B","testCounterB",config,converter);
ChangesCounter<CmpVertex,CmpVertex,LearnerGraphCachedData,LearnerGraphCachedData> counter = new ChangesCounter<CmpVertex,CmpVertex,LearnerGraphCachedData,LearnerGraphCachedData>(grA,grB,null);
ChangesDisplay recorder = new ChangesDisplay(counter);
GD<CmpVertex,CmpVertex,LearnerGraphCachedData,LearnerGraphCachedData> gd = new GD<CmpVertex,CmpVertex,LearnerGraphCachedData,LearnerGraphCachedData>();
gd.computeGD(grA, grB, threadNumber, recorder,config);
Assert.assertEquals("mapping: A - @A\n"+
"mapping: B - @B\n"+
"initial : A\n"+
"removed: A - b -> B\n"+
"added : A - c -> B\n",recorder.toString());
Assert.assertEquals(1,counter.getAdded());Assert.assertEquals(1,counter.getRemoved());
}