/**
* Serialize an instance, restore it, and check for equality.
*/
public void testSerialization() {
OHLC i1 = new OHLC(2.0, 4.0, 1.0, 3.0);
OHLC i2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(i1);