list.stream().forEach(e -> { dbCall.delete(e.Id());});
Each item from the list is deleted from the database.
Assuming there were 3 items in the list, how to unit test:
- Delete was called 3 times.
- Delete was called 'in order/sequence', i.e. sequence of elements in the list?