/**
* Serialize an instance, restore it, and check for equality.
*/
public void testSerialization() {
DateTick t1 = new DateTick(
new Date(0L), "Label", TextAnchor.CENTER, TextAnchor.CENTER, 10.0
);
DateTick t2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(t1);