*/
@Test
public void testLoad() throws Exception {
System.out.println("load");
J48 serializedClassifier = new J48();
serializedClassifier.setNumFolds(456);
ByteArrayOutputStream out = new ByteArrayOutputStream();
ObjectOutputStream serializer = new ObjectOutputStream(out);
serializer.writeObject(serializedClassifier);
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;
assertEquals(serializedClassifier.getNumFolds(), j48.getNumFolds());
}