### Question:
BooleanComparisonStep implements ComparisonStep<T> { @Override public boolean isEqual(T object1, T object2) { return valueExtractor.test(object1) == valueExtractor.test(object2); } BooleanComparisonStep(Predicate<? super T> valueExtractor); @Override boolean isEqual(T object1, T object2);  }### Answer:
@Test void givenValuesAreNotEqualItShouldReturnFalse() { BooleanComparisonStep<TestData> hashStep = new BooleanComparisonStep<>(TestData::getValue); boolean result = hashStep.isEqual(new TestData(false), new TestData(true)); assertThat(result) .isFalse(); }