diff --git a/spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java b/spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java index 61aa4f2d90..52dd2ef26b 100644 --- a/spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java +++ b/spring-kafka/src/test/java/org/springframework/kafka/listener/KafkaMessageListenerContainerTests.java @@ -435,7 +435,7 @@ public void publishEvent(ApplicationEvent event) { public void testNonResponsiveConsumerEventNotIssuedWithActiveConsumer() throws Exception { ConsumerFactory cf = mock(ConsumerFactory.class); Consumer consumer = mock(Consumer.class); - given(cf.createConsumer(anyString(), eq(""))).willReturn(consumer); + given(cf.createConsumer(anyString(), anyString())).willReturn(consumer); ConsumerRecords records = new ConsumerRecords(Collections.emptyMap()); CountDownLatch latch = new CountDownLatch(20); given(consumer.poll(anyLong())).willAnswer(i -> {