### Question:
LookUpKey { public void reset() throws IOException { buffer.reset(0, 0); } LookUpKey();  LookUpKey(int bufferSize); void reset(); void add(Writable writable); LookUpKey copy(); LookUpKey.View getDirectView(); LookUpKey.View getFrozenView(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void reset() throws Exception { LookUpKey k1 = new LookUpKey(); k1.add(new IntOption(100)); k1.reset(); k1.add(new IntOption(200)); LookUpKey k2 = new LookUpKey(); k2.add(new IntOption(200)); assertThat(k1.equals(k2), is(true)); assertThat(k1.hashCode(), is(k2.hashCode())); }