@Test
public final void testLearnerEvaluation2()
{
ByteArrayOutputStream output = new ByteArrayOutputStream();
RecordProgressDecorator dumper = new RecordProgressDecorator(null,output,1,config,false);
Element learnerConfig = dumper.writeLearnerEvaluationConfiguration(new LearnerEvaluationConfiguration(graph,testData,anotherconfig,ltl,labels));
Element configToRemove = (Element)StatechumXML.getChildWithTag(learnerConfig,Configuration.configXMLTag).item(0);
learnerConfig.removeChild(configToRemove);
dumper.topElement.appendChild(learnerConfig);dumper.close();xmlData = output.toString();
LearnerSimulator loader = new LearnerSimulator(new ByteArrayInputStream(xmlData.getBytes()),false,converter);
LearnerEvaluationConfiguration cnf=loader.readLearnerEvaluationConfiguration(loader.expectNextElement(StatechumXML.ELEM_EVALUATIONDATA.name()),anotherconfig);
WMethod.checkM(cnf.graph, graph);
Assert.assertEquals(testData, cnf.testSet);
Assert.assertEquals(anotherconfig, cnf.config);
Assert.assertEquals(cnf.config, cnf.graph.config);
Assert.assertEquals(ltl,cnf.ifthenSequences);