Matcher same(expected)

Returns a matches that matches if the value is the same instance as expected, using identical.

Source

Matcher same(expected) => new _IsSameAs(expected);