*/
@Test
public final void testAppendSequence5()
{
LearnerGraph fsm = buildLearnerGraph("A-p->A-b->B-c->B-a->C\nQ-d->S","testAppendSequence5",config);
PrefixFreeCollection sequences = new SlowPrefixFreeCollection();
sequences.addSequence(labelList(new String[]{"p","b"}));
Set<List<Label>> expected = buildSet(new String[][]{
new String[]{"p","b"},
new String[]{"p","p","p"}
},config);
fsm.wmethod.appendSequence(sequences, labelList(new String[]{"p"}));
fsm.wmethod.appendSequence(sequences, labelList(new String[]{"p","p"}));
fsm.wmethod.appendSequence(sequences, labelList(new String[]{"p","p","p"}));
Set<List<Label>> actual = new HashSet<List<Label>>();actual.addAll(sequences.getData());
Assert.assertTrue("expected : "+expected+" got: "+actual,expected.equals(actual));
}