ErlangModule.setupErlangConfiguration(config,file);config.setErlangCompileIntoBeamDirectory(true);config.setTransitionMatrixImplType(STATETREE.STATETREE_SLOWTREE);
ErlangModule.loadModule(config);
final String LBL1 = "{call, read}", LBL2 = "{call, lock}";
final LearnerGraph gr = buildLearnerGraph("A- "+LBL1+" ->B-"+LBL2+"->B", "testConvertToModuleFailure1", config,null);
Iterator<Label> lblIter = gr.pathroutines.computeAlphabet().iterator();
ErlangLabel lbl1 = (ErlangLabel)lblIter.next(),lbl2 = (ErlangLabel)lblIter.next();
List<Label> trace = Arrays.asList(new Label[]{lbl1,lbl2,lbl2});
Assert.assertEquals("[{?F(),'call','read'},{?F(),'call','lock'},{?F(),'call','lock'}]",RPNILearner.questionToString(trace));
}