/**
* Serialize an instance, restore it, and check for equality.
*/
public void testSerialization() {
RangeType r1 = RangeType.FULL;
RangeType r2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(r1);
out.close();