In unit tests hasItems and size matchers are used when contains or containsInAnyOrder would be a better match.