I want to create a mocked list to test below code:
for (String history : list) { //code here }
Here is my implementation:
When dealing with mocking lists and iterating them, I always use something like:
@Spy private List parts = new ArrayList<>();