So, have an use case where in I extract title from the object, as list say 10 items, now need to verify the title is present in anyof the first 5 items. Using below method to extract the items.But not sure how to reduce the list and verify it.
softAssertions.assertThat(resultArrayList)
.extracting("title")
.as("Title match")
.isEqualTo(placeToSearch);