title: Wanted but not invoked: <Capturing argument>Actually, there were zero interactions with this mock
body: <p>I am using spring boot, maven, junit4, the test code is as below, when I run this test, I always get the following error:</p>
  <blockquote>
  <p>Wanted but not invoked:
  onSubscriptionEventListener.handleSubscriptionEvent(
   );
  -&gt; at com.sap.ngom.urm.contract.consumer.VerifySubscriptionKafkaEventContractTest.handle_subscription_deleted_event(VerifySubscriptionKafkaEventContractTest.java:142)
  Actually, there were zero interactions with this mock.</p>
  <p>Wanted but not invoked:
  onSubscriptionEventListener.handleSubscriptionEvent(
   );
  -&gt; at com.sap.ngom.urm.contract.consumer.VerifySubscriptionKafkaEventContractTest.handle_subscription_deleted_event(VerifySubscriptionKafkaEventContractTest.java:142)
  Actually, there were zero interactions with this mock.</p>
  </blockquote>
  <pre><code>@SpringBootTest(classes = {DummyApplication.class},
          properties = {&quot;stubrunner.kafka.enabled=true&quot;,&quot;stubrunner.stream.enabled=false&quot;,&quot;spring.kafka.bootstrap-servers: ${spring.embedded.kafka.brokers}&quot;})
  @AutoConfigureStubRunner(ids = {&quot;com.xxx.contracts:+:stubs&quot;}, consumerName = &quot;urm&quot;)
  @EmbeddedKafka(partitions = 1, topics = {xxx_TOPIC})
  @ActiveProfiles({&quot;contracttest&quot;})
  @RunWith(SpringRunner.class)
  public class VerifyKafkaEventContractTest {
  
      @Autowired
      StubTrigger stubTrigger;
  
      @SpyBean
      OnSubscriptionEventListener onSubscriptionEventListener;
  
      @Captor
      ArgumentCaptor&lt;SubscriptionEvent&gt; subscriptionArgumentCaptor;
  
      @Before
      public void setUp() {
          MockitoAnnotations.initMocks(this);
          Mockito.doNothing().when(onSubscriptionEventListener).handleSubscriptionEvent(any());
   
  
      }
  
      @Test
      public void handle_subscription_deleted_event() {
  
          stubTrigger.trigger(&quot;kafka-subscription-deletion-urm&quot;);
  
   verify(onSubscriptionEventListener).handleSubscriptionEvent(subscriptionArgumentCaptor.capture());
              }
       }  
  </code></pre>
  <p>Could this be a bug of the @SpyBean?</p>