double[] d = { 1.1, 2.2, 3.3 };
Vector m = new DenseVector(d);
NormalModel model = new NormalModel(m, 0.75);
Printable cluster = new DirichletCluster<VectorWritable>(model, 35.0);
String json = cluster.asJsonString();
GsonBuilder builder = new GsonBuilder();
builder.registerTypeAdapter(Model.class, new JsonModelAdapter());
Gson gson = builder.create();
DirichletCluster<VectorWritable> result = gson.fromJson(json, clusterType);
assertNotNull("result null", result);
assertEquals("model", cluster.asFormatString(null), result.asFormatString(null));
}