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