Matcher containsPair(key, value)

Returns a matcher which matches maps containing the key-value pair with key => value.

Source

Matcher containsPair(key, value) =>
    new _ContainsMapping(key, wrapMatcher(value));