/**
* Serialize an instance, restore it, and check for equality.
*/
public void testSerialization() {
ContourPlot p1 = new ContourPlot(null, null, null, null);
ContourPlot p2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(p1);