``` @SpringBootTest @SpringJUnitConfig @ActiveProf...
# test
x
Copy code
@SpringBootTest
@SpringJUnitConfig
@ActiveProfiles()
internal class PeriodicDumpJobTest @Autowired constructor( private val dumpSvc: PeriodicDumpService) {

    @TestConfiguration
    open class MockConfig {
        @Bean
        @Primary
        open fun service() = mock<PeriodicDumpService> {
            on { findMrnsToDump( any(), any() ) } doReturn listOf()
        }
    }
    @Test
    fun testDump() {
        verify( dumpSvc, times( 10)).findMrnsToDump( any(), any() )
    }
}
this test passes… it shouldn’t, as I never interact with the mock. what’m I missing