### Question:
CharHashStep implements HashStep<T> { @Override public int hash(T object) { return Character.hashCode(valueExtractor.applyAsChar(object)); } CharHashStep(ToCharFunction<? super T> valueExtractor); @Override int hash(T object);  }### Answer:
@Test void shouldReturnHashCode() { CharHashStep<TestData> hashStep = new CharHashStep<>(TestData::getValue); int result = hashStep.hash(new TestData('c')); assertThat(result) .isEqualTo(Character.hashCode('c')); }