public void testDirichletNormalModelClusterAsJsonString() {
double[] d = { 1.1, 2.2, 3.3 };
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);