@Test
public void testTrain() {
System.out.println("train");
TrainingImpl instance = new TrainingImpl();
WekaModel model = instance.train(new ExampleSet(instances));
//The test here is whether the model works
Boolean[] expResult = new Boolean[]{true, true, false, false};
Double[] expConfidence = new Double[]{1.0, 1.0, 0.0, 0.0};
ExampleSet examples = new ExampleSet(testInstances);
Predictions predictions = model.getPredictions(examples);
assertEquals(expResult.length, predictions.size());
for (int i = 0; i < expResult.length; i++) {