expected can be a predicate