}
public void testClassWithSQLDate() throws Exception
{
TestClassWithSQLDateOnly dateObj = new TestClassWithSQLDateOnly();
DataContainer data = new DataContainer(true);
ObjectOutput out = data.getOutput();
out.writeObject(dateObj);
out.flush();
ObjectInput input = data.getInput();
TestClassWithSQLDateOnly newDate = (TestClassWithSQLDateOnly)input.readObject();
assertEquals(dateObj.newDate, newDate.newDate);
}