anchor.diff:  }
   ----
   
  -* Configuring a property name on the `@EmbeddedKafka` annotation:
  +* Configure a property name on the `@EmbeddedKafka` annotation:
   
   [source,java,indent=0]
   ----
  
positive.code: [[boot-features-embedded-kafka]]
  ==== Testing with Embedded Kafka
  Spring for Apache Kafka provides a convenient way to test projects with an embedded Apache Kafka
  broker. This feature is available via an `@EmbeddedKafka` test class level annotation from the
  `spring-kafka-test` dependency. See more information in the Spring for Apache Kafka
  https://docs.spring.io/spring-kafka/docs/current/reference/html/#embedded-kafka-annotation[reference manual].
  
  To make Spring Boot auto-configuration work with the mentioned embedded Apache Kafka broker, you need
  to remap a system property for embedded broker addresses (populated by the `EmbeddedKafkaBroker`)
  into Spring Boot configuration property for Apache Kafka. There are several ways to do that:
  
  * Provide a system property to map embedded broker addresses into `spring.kafka.bootstrap-servers` in the test class:
  
  
negative.code:         bootstrapServersProperty = "spring.kafka.bootstrap-servers")
  ----
  
  * Use a placeholder in configuration properties:
  
  [source,properties,indent=0]
  ----
  spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}
  ----
  
  
  
  [[boot-features-resttemplate]]
  