Unit test that demonstrates the removeHeaders option for both Java DSL and Spring DSL