public final class TestModelDistributionSerialization extends MahoutTestCase {
@Test
public void testGaussianClusterDistribution() {
GaussianClusterDistribution dist = new GaussianClusterDistribution(new VectorWritable(new DenseVector(2)));
String json = dist.asJsonString();
GsonBuilder builder = new GsonBuilder();
builder.registerTypeAdapter(ModelDistribution.class, new JsonModelDistributionAdapter());
builder.registerTypeAdapter(DistanceMeasure.class, new JsonDistanceMeasureAdapter());
Gson gson = builder.create();
GaussianClusterDistribution dist1 = (GaussianClusterDistribution) gson