### Question:
IntHashStep implements HashStep<T> { @Override public int hash(T object) { return Integer.hashCode(valueExtractor.applyAsInt(object)); } IntHashStep(ToIntFunction<? super T> valueExtractor); @Override int hash(T object);  }### Answer:
@Test void shouldReturnHashCode() { IntHashStep<TestData> hashStep = new IntHashStep<>(TestData::getValue); int result = hashStep.hash(new TestData(1337)); assertThat(result) .isEqualTo(Integer.hashCode(1337)); }