@Test
public void testSerdeModel() throws IOException {
// given
RealValueFileEventStream rvfes1 = new RealValueFileEventStream("src/test/resources/data/opennlp/maxent/real-valued-weights-training-data.txt");
DataIndexer testDataIndexer = new OnePassRealValueDataIndexer(rvfes1,1);
// when
// QNModel trainedModel = new QNTrainer(5, 500, true).trainModel(new TwoPassDataIndexer(createTrainingStream()));
QNModel trainedModel = new QNTrainer(5, 700, true).trainModel(testDataIndexer);
ByteArrayOutputStream modelBytes = new ByteArrayOutputStream();