out.close();
byte[] serializedStr = out.toByteArray();
ByteArrayInputStream in = new ByteArrayInputStream(serializedStr);
WekaModel model = new WekaModel();
assertTrue(model.load(in));
in.close();
Classifier classifier = model.getClassifier();
assertTrue(classifier instanceof J48);
J48 j48 = (J48) classifier;