grB.transitionMatrix.put(A2, grB.createNewRow());grB.transitionMatrix.put(B2, grB.createNewRow());
grA.addToCompatibility(A1, B1, PAIRCOMPATIBILITY.THEN);// this is the key part of this test
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();
addToKeyPairs(gd, A1, A2);addToKeyPairs(gd, B1, B2);// in key pairs
Assert.assertEquals(3,gd.aTOb.size());
gd.computeDifference(recorder);
Assert.assertEquals(expectedPatch,recorder.toString());
}