Testing Routes with XML body

Hello,

I have an Akka Http server, some of the requests require the body to be in XML format.

I am looking for a way to tests these routes from routes tests. In my case, I am creating HttpEntity with XML and passing it to Put, regardless of what content type I use I am getting following error:

Request was rejected with rejection akka.http.scaladsl.server.UnsupportedRequestContentTypeRejection@53bf7094

Any idea of how to test these routes?

Regards,

Syed

How are you setting the content type of the test request?