There's some native configurations like enableDlq within spring cloud stream kafka binder, but there's not any example's that i've found on how to properly unit test if the enableDlq is working properly. Are there any examples out there of how to properly implement this type of test?
There are a bunch of tests in the binder project itself:
The general technique there is to bind to the dlq with a separate binding, but you can equally well just define a KafkaConsumer
to consume from it and verify that it received the message you expected.