}
@SuppressWarnings("unchecked")
public void testNormalModelSerialization() {
double[] m = { 1.1, 2.2 };
Model model = new NormalModel(new DenseVector(m), 3.3);
GsonBuilder builder = new GsonBuilder();
builder.registerTypeAdapter(Vector.class, new JsonVectorAdapter());
Gson gson = builder.create();
String jsonString = gson.toJson(model);
Model model2 = gson.fromJson(jsonString, NormalModel.class);
assertEquals("models", model.toString(), model2.toString());
}