@Test
public void testCreateMarkovMatrix1()
{
MarkovModel m = new MarkovModel(2,true,true);
Set<List<Label>> plusStrings = buildSet(new String[][] { new String[]{"a","b","c"}, new String[]{"a","b"}, new String[]{"a","d","c"}},config,converter), minusStrings = buildSet(new String[][] { new String[]{"a","b","c","d"}, new String[]{"a","u"} },config,converter);
m.createMarkovLearner(plusStrings, minusStrings,false);
Map<List<Label>, MarkovOutcome> matrix = m.computePredictionMatrix();
Assert.assertEquals(11,matrix.size());
Assert.assertSame(MarkovOutcome.negative, matrix.get(Arrays.asList(new Label[]{lblA,lblU})));
Assert.assertSame(MarkovOutcome.positive, matrix.get(Arrays.asList(new Label[]{lblD,lblC})));