/**
* Serialize an instance, restore it, and check for equality.
*/
public void testSerialization() {
FlowArrangement f1 = new FlowArrangement(
HorizontalAlignment.LEFT, VerticalAlignment.TOP, 1.0, 2.0
);
FlowArrangement f2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(f1);
out.close();