/**
* Serialize an instance, restore it, and check for equality.
*/
public void testSerialization() {
MeanAndStandardDeviation m1 = new MeanAndStandardDeviation(1.2, 3.4);
MeanAndStandardDeviation m2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(m1);