/**
* Serialize an instance, restore it, and check for equality.
*/
public void testSerialization() {
final StrokeTable t1 = new StrokeTable();
t1.setStroke(0, 0, new BasicStroke(1.0f));
t1.setStroke(0, 1, new BasicStroke(2.0f));
t1.setStroke(1, 0, new BasicStroke(3.0f));
t1.setStroke(1, 1, new BasicStroke(4.0f));
StrokeTable t2 = null;
try {
final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
final ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(t1);