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