### Question:
FloatHashStep implements HashStep<T> { @Override public int hash(T object) { return Float.hashCode(valueExtractor.applyAsFloat(object)); } FloatHashStep(ToFloatFunction<? super T> valueExtractor); @Override int hash(T object);  }### Answer:
@Test void shouldReturnHashCode() { FloatHashStep<TestData> hashStep = new FloatHashStep<>(TestData::getValue); int result = hashStep.hash(new TestData(1337.0f)); assertThat(result) .isEqualTo(Float.hashCode(1337.0f)); }