/**
* Serialize an instance, restore it, and check for equality.
*/
public void testSerialization() {
AxisLocation location1 = AxisLocation.BOTTOM_OR_RIGHT;
AxisLocation location2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(location1);
out.close();