### Question:
OfLongIterable { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } OfLongIterable other = (OfLongIterable) obj; if (!Arrays.equals(array, other.array)) { return false; } if (size != other.size) { return false; } return true; }  int size(); void add(long value); OfLong longIterator(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void testEquals() { OfLongIterable h = new OfLongIterable(); OfLongIterable k = new OfLongIterable(); OfLongIterable i = new OfLongIterable(); for (int j = 0; j < 9; j++) { i.add(j); k.add(j); h.add(8 - j); } assertEquals(k, i); assertNotEquals(h, i); }