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