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