Latest version of Mockito (5.3.0) used in Spring Boot 3.1.0, apparently needs the specific Collection type when capturing values via the ArgumentCaptor. Earlier versisons didn't mandate this.