assertThat(Arrays.asList(value.getCodes()), is(equalTo(Arrays.asList("a.x", "b.x", "c.x"))));
}
@Test
public void shouldResolveOnGetValueToString() throws Exception {
StaticMessageSource messageSource = new StaticMessageSource();
MessageSourceMap map = new TestMessageSourceMap(messageSource, null);
Object value = map.get("x");
messageSource.addMessage("x", Locale.getDefault(), "message");
assertThat(value.toString(), is(equalTo("message")));
}