grA.findVertex(VertexID.parseID("AC")).setColour(JUConstants.RED);// ignored because it features in added transitions
LearnerGraph grB = buildLearnerGraph(graphB,name+"_B",configNonFail,converter);
grB.findVertex(VertexID.parseID("AC")).setColour(JUConstants.AMBER);// ignored because it features in added transitions
grB.findVertex(VertexID.parseID("D")).setColour(JUConstants.RED);// included in diff
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.init(grA, grB, threadNumber,configNonFail);
gd.identifyKeyPairs();
gd.makeSteps();
gd.aTOb.put(grA.findVertex(VertexID.parseID("M")), gd.origToNewB.get(grB.findVertex(VertexID.parseID("M"))));
Assert.assertEquals(4,gd.aTOb.size());
gd.computeDifference(recorder);
Assert.assertEquals(expectedPatch,recorder.toString());
}