IntegerValue extends NumberValueAdapter<Long> { @Override public int hashCode() { return (int) (val ^ (val >>> 32)); } IntegerValue( long val ); @Override Type type(); @Override Long asNumber(); @Override long asLong(); @Override int asInt(); @Override double asDouble(); @Override float asFloat(); @Override String toString(); @Override boolean equals( Object o ); @Override int hashCode();  }
@Test void testHashCode() { IntegerValue value = new IntegerValue( 1L ); assertThat( value.hashCode(), notNullValue() ); }