public void testSerialization()
{
Assume.assumeTrue(System.getProperty("org.apache.deltaspike.weld.pre_1.1.10") == null);
final Serializer<Message> messageSerializer = new Serializer<Message>();
final LocaleResolver localeResolver = new FixedGermanLocaleResolver();
final Message message = this.messageContext
.localeResolver(localeResolver)
.messageResolver(new TestMessageResolver())
.message().template("{hello}").argument("hans");
Assert.assertEquals("Test Nachricht an hans", message.toString());