Resolved conflict with Mockito and Hamcrest.

Switched to using `contains` instead of `hasItems` in unit tests,
since we don't want to allow "extra" values in the tests.