/**
* Serialize an instance, restore it, and check for equality.
*/
public void testSerialization() {
CategoryLabelWidthType w1 = CategoryLabelWidthType.RANGE;
CategoryLabelWidthType w2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(w1);