Taking hasItem from CoreMatchers API, instead of from hamcrest.core