Looks similar to assertCollectionToBeFilledWithContent. Can you refactor (may extract method to an utility class)