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