### Question:
XBeeIMEIAddress { @Override public int hashCode() { int hash = HASH_SEED; for (byte b:getValue().getBytes()) hash = hash * (hash + b); return hash; } XBeeIMEIAddress(byte[] address);  XBeeIMEIAddress(String address); String getValue(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public final void testHashCodeIsConsistent() { XBeeIMEIAddress imei = new XBeeIMEIAddress("1234"); int initialHashCode = imei.hashCode(); assertThat("Consistent hashcode test fails", imei.hashCode(), is(equalTo(initialHashCode))); assertThat("Consistent hashcode test fails", imei.hashCode(), is(equalTo(initialHashCode))); }