public void conditionOfCallableBooleanHasBooleanValuesInConditionEvalutionListener() {
final CountDown countDown = new CountDown(10);
final List<Boolean> results = new ArrayList<>();
with()
.conditionEvaluationListener(condition -> results.add((Boolean) condition.getValue()))
.until(() -> countDown.call() == 5);
assertThat(results.get(results.size() - 1), is(true));
assertThat(results.subList(0, results.size() - 1), allOf(hasItem(false), not(hasItem(true))));
}
}