### Question:
DefaultProducerFactory implements ProducerFactory<K, V> { @Override public ConfirmationMode confirmationMode() { return confirmationMode; } @SuppressWarnings("WeakerAccess") protected  DefaultProducerFactory(Builder<K, V> builder); static Builder<K, V> builder(); @Override Producer<K, V> createProducer(); @Override ConfirmationMode confirmationMode(); Map<String, Object> configurationProperties(); String transactionIdPrefix(); @Override void shutDown();  }### Answer:
@Test void testDefaultConfirmationModeForTransactionalProducer() { assertEquals(transactionalProducerFactory(kafkaBroker, "foo").confirmationMode(), TRANSACTIONAL); }