}
@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);