/**
* Serialize an instance, restore it, and check for identity.
*/
public void testSerialization() {
ItemLabelAnchor a1 = ItemLabelAnchor.INSIDE1;
ItemLabelAnchor a2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(a1);