Fix a bug where either jetty or spring-mvc was overwriting the response mimetype. Factored out tests.