}
@Test
public void dumpIterativeKMeans() {
// prepare the test environment
PreviewPlanEnvironment env = new PreviewPlanEnvironment();
env.setAsContext();
try {
// <points path> <centers path> <result path> <num iterations
KMeans.main(new String[] {IN_FILE, IN_FILE, OUT_FILE, "123"});
} catch(ProgramAbortException pae) {
// all good.
} catch (Exception e) {
e.printStackTrace();
Assert.fail("KMeans failed with an exception");
}
dump(env.getPlan());
}