@Test
public void testClusterAsFormatStringSparse() {
double[] d = { 1.1, 0.0, 3.3 };
Vector m = new SequentialAccessSparseVector(3);
m.assign(d);
Cluster cluster = new org.apache.mahout.clustering.kmeans.Cluster(m, 123, measure);
String formatString = cluster.asFormatString(null);
assertEquals("CL-123{n=0 c=[0:1.100, 2:3.300] r=[]}", formatString);
}