After changing to spring boot version to 3.4.0 from 3.3.6
With following configuration @EmbeddedKafka(partitions = 1, bootstrapServersProperty = "spring.kafka.bootstrap-servers:localhost:9092", topics = {example-topic}) got exception Topic example-topic not present in metadata after 60000 ms.
Used only @EmbeddedKafka it worked. Thank you.