### Question:
MockKafka implements Kafka<K, V> { @Override public void describeProducer(LogLine logLine, Properties defaults, Properties overrides) { logLine.println("Mock producer"); } MockKafka();  MockKafka(int maxPartitions, int maxHistory); MockKafka<K, V> withSendCallbackExceptionGenerator(ExceptionGenerator<ProducerRecord<K, V>, Exception> sendCallbackExceptionGenerator); MockKafka<K, V> withSendRuntimeExceptionGenerator(ExceptionGenerator<ProducerRecord<K, V>, RuntimeException> sendRuntimeExceptionGenerator); MockKafka<K, V> withCommitExceptionGenerator(ExceptionGenerator<Map<TopicPartition, OffsetAndMetadata>, Exception> commitExceptionGenerator); MockKafka<K, V> withAdminClientFactory(Supplier<AdminClient> adminClientFactory); MockKafka<K, V> withRecordMapper(BiFunction<ProducerRecord<K, V>, RecordMetadata, ConsumerRecord<K, V>> recordMapper); @Override void describeProducer(LogLine logLine, Properties defaults, Properties overrides); @Override FallibleMockProducer<K, V> getProducer(Properties overrides); @Override FallibleMockProducer<K, V> getProducer(Properties defaults, Properties overrides); List<ConsumerRecord<K, V>> getBacklog(); @Override void describeConsumer(LogLine logLine, Properties defaults, Properties overrides); @Override FallibleMockConsumer<K, V> getConsumer(Properties overrides); @Override FallibleMockConsumer<K, V> getConsumer(Properties defaults, Properties overrides); @Override AdminClient getAdminClient(); @Override String toString();  }### Answer:
@Test public void testDescribeProducer() { final LogLine logLine = mock(LogLine.class, Answers.CALLS_REAL_METHODS); new MockKafka<String, String>(1, 1).describeProducer(logLine, new Properties(), new Properties()); verify(logLine).accept(notNull()); }