ConditionEvaluatedEvent { @Override public int hashCode() { return Objects.hashCode(result, error); } ConditionEvaluatedEvent(final String error);  ConditionEvaluatedEvent(final Boolean conditionResult); static ConditionEvaluatedEvent from(final Map<String, Object> eventMap); Optional<Boolean> getResult(); Optional<String> getError(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void hashCodeTests() { assertThat(new ConditionEvaluatedEvent(Boolean.TRUE).hashCode()) .isEqualTo(new ConditionEvaluatedEvent(Boolean.TRUE).hashCode()); assertThat(new ConditionEvaluatedEvent(Boolean.FALSE).hashCode()) .isEqualTo(new ConditionEvaluatedEvent(Boolean.FALSE).hashCode()); assertThat(new ConditionEvaluatedEvent("error").hashCode()) .isEqualTo(new ConditionEvaluatedEvent("error").hashCode()); }