* Serialize an instance, restore it, and check for equality.
*/
@Test
public void testSerialization() throws IOException, ClassNotFoundException {
CategoryTick t1 = new CategoryTick("C1", new TextBlock(),
TextBlockAnchor.CENTER, TextAnchor.CENTER, 1.5f);
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(t1);