SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
assertThat(myClass.getMyItems(), hasItem(hasProperty("YourProperty", is("YourValue"))));