@Test
public void should_translate_with_params() throws Exception {

    DefaultMessages m = new DefaultMessages("restx.i18n.test");
    assertThat(m.getMessage("key2", MessageParams.of("who", "World"), Locale.ENGLISH)).isEqualTo("Hello World!");
    assertThat(m.getMessage("key2", MessageParams.of("who", "World"), Locale.FRENCH)).isEqualTo("Bonjour World !");
}