### Question:
OHLC implements Serializable { @Override public int hashCode() { int result = 193; result = HashUtilities.hashCode(result, this.open); result = HashUtilities.hashCode(result, this.high); result = HashUtilities.hashCode(result, this.low); result = HashUtilities.hashCode(result, this.close); return result; } OHLC(double open, double high, double low, double close); double getOpen(); double getClose(); double getHigh(); double getLow(); @Override boolean equals(Object obj); @Override int hashCode();  }### Answer:
@Test public void testHashcode() { OHLC i1 = new OHLC(2.0, 4.0, 1.0, 3.0); OHLC i2 = new OHLC(2.0, 4.0, 1.0, 3.0); assertEquals(i1, i2); int h1 = i1.hashCode(); int h2 = i2.hashCode(); assertEquals(h1, h2); }