Matches Iterables where exactly one element matches the expected value, and all other elements don't match.
Matcher containsOnce(Object? expected) => _ContainsOnce(expected);