/**
* Serialize an instance, restore it, and check for equality.
*/
public void testSerialization() {
ModuloAxis a1 = new ModuloAxis("Test", new Range(0.0, 1.0));
ModuloAxis a2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(a1);