@Test
public void testNoVector() throws Exception {

	MemSourceBatchOp inOp = new MemSourceBatchOp(Arrays.asList(rows), new String[] {"label", "Y"});
	KMeans train = new KMeans()
		.setVectorCol("Y")
		.setPredictionCol("pred")
		.setK(2);
	ClusterMetrics metrics = new EvalClusterBatchOp()
		.setPredictionCol("pred")
		.linkFrom(train.fit(inOp).transform(inOp))
		.collectMetrics();
	Assert.assertEquals(metrics.getCount().intValue(), 6);
	Assert.assertArrayEquals(metrics.getClusterArray(), new String[]{"0", "1"});
}