public void shouldSerializeErrorMessages() throws Exception {
Message normal = new SimpleMessage("category", "The message");
I18nMessage i18ned = new I18nMessage("category", "message");
i18ned.setBundle(new SingletonResourceBundle("message", "Something else"));
XStreamBuilder xstreamBuilder = cleanInstance(new MessageConverter());
MockSerializationResult result = new MockSerializationResult(null, xstreamBuilder, null, null);
DefaultStatus status = new DefaultStatus(response, result, config, new JavassistProxifier(), router);
status.badRequest(Arrays.asList(normal, i18ned));