Event { @Override public int hashCode() { int result = (int) (mTimestamp ^ (mTimestamp >>> 32)); result = 31 * result + mQuery.hashCode(); return result; } Event(Map<String, String> eventData);  Event(String query);  Event(long timestamp, String query); long getTimeStamp(); String getEncodedQuery(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testhashCode() { Event event = new Event(0, ""); assertEquals(0, event.hashCode()); }