private void assertCharset(String path) throws URISyntaxException {
for (String characterSet : characterSets) {
MockHttpRequest request = MockHttpRequest.get(path);
request.accept("application/xml");
request.header("Accept-Charset", characterSet);
MockHttpResponse response = new MockHttpResponse();
dispatcher.invoke(request, response);
assertEquals("Status code.", 200, response.getStatus());