Vector m = new DenseVector(d);
NormalModel model = new NormalModel(5, m, 0.75);
Cluster cluster = new DirichletCluster(model, 35.0);
String json = cluster.asJsonString();
GsonBuilder builder = new GsonBuilder();
builder.registerTypeAdapter(Cluster.class, new JsonClusterModelAdapter());
Gson gson = builder.create();
DirichletCluster result = gson.fromJson(json, CLUSTER_TYPE);
assertNotNull("result null", result);
assertEquals("model", cluster.asFormatString(null), result.asFormatString(null));
}