Assert.assertTrue(display.toString().contains("added vertex:testA"));// this has to be done because testA is disconnected and will be killed by removeDisconnected
LearnerGraphND graph = new LearnerGraphND(config);AbstractLearnerGraph.copyGraphs(grA, graph);
Configuration configMut = Configuration.getDefaultConfiguration().copy();config.setLearnerCloneGraph(false);
LearnerGraphMutator<List<CmpVertex>,LearnerGraphNDCachedData> graphPatcher = new LearnerGraphMutator<List<CmpVertex>,LearnerGraphNDCachedData>(graph,configMut,null);
ChangesRecorder.loadDiff(graphPatcher, recorder.writeGD(TestGD.createDoc()));
graphPatcher.removeDanglingStates();
LearnerGraphND outcome = new LearnerGraphND(configMut);
graphPatcher.relabel(outcome);
Assert.assertTrue(DeterministicDirectedSparseGraph.nonIDAttributesEquals(outcome.findVertex(nameC),grA.findVertex("testA")));