public class TestEnum extends TapestryTestCase
{
public void testSerialization() throws Exception
{
BeanLifecycle start = BeanLifecycle.RENDER;
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
oos.writeObject(start);
oos.close();
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
ObjectInputStream ois = new ObjectInputStream(bis);
BeanLifecycle result = (BeanLifecycle) ois.readObject();
assertEquals(start, result);
assertSame(start, result);
}