@SuppressWarnings("unchecked")
public void testSampledNormalDistributionSerialization() {
SampledNormalDistribution dist = new SampledNormalDistribution();
Model[] models = dist.sampleFromPrior(20);
GsonBuilder builder = new GsonBuilder();
builder.registerTypeAdapter(Vector.class, new JsonVectorAdapter());
Gson gson = builder.create();
String jsonString = gson.toJson(models);
Model[] models2 = gson.fromJson(jsonString, SampledNormalModel[].class);
assertEquals("models", models.length, models2.length);
for (int i = 0; i < models.length; i++) {