{
Configuration config = Configuration.getDefaultConfiguration();
LearnerGraph from = new LearnerGraph(buildGraph("A-a->A-b->B / A-c-#C","testClassify1a"),config),
to=new LearnerGraph(buildGraph("A-b->A-a->B","testClassify1b"),config);
ConfusionMatrix matrix = DiffExperiments.classify(TestFSMAlgo.buildSet(new String[][]{
new String[] {"a"} // TP
,new String[] {"b"} // TP
,new String[]{"b","b"} // FP
,new String[]{"c"} // TN
}), from, to);
Assert.assertEquals(2./3.,matrix.getPrecision(),Configuration.fpAccuracy);
Assert.assertEquals(1,matrix.getRecall(),Configuration.fpAccuracy);
Assert.assertEquals(0.8,matrix.fMeasure(),Configuration.fpAccuracy);
Assert.assertEquals(0.5,matrix.getSpecificity(),Configuration.fpAccuracy);
Assert.assertEquals(0.75,matrix.BCR(),Configuration.fpAccuracy);
}