* @author <a href="mailto:clebert.suconic@jboss.com">Clebert Suconic</a>
*/
public class FinalFieldTest extends TestCase {
public void testFinal() throws Exception
{
TestWithFinalField finalField = new TestWithFinalField();
ByteArrayOutputStream byteout = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream (byteout);
out.writeObject(finalField);
out.flush();
ObjectInputStream inp = new ObjectInputStream (new ByteArrayInputStream(byteout.toByteArray()));
TestWithFinalField finalField2 = (TestWithFinalField)inp.readObject();
assertEquals(finalField,finalField2);
}