Testing Routes with XML body


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?



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