### Question:
I18NExample { public void execute() { String message = messageSource.getMessage("argument.required", new Object[]{"userDao"}, "Required", Locale.UK); System.out.println(message); }  void setMessageSource(MessageSource messageSource); void execute();  }### Answer:
@Test public void testI18NMessageResource() throws Exception { I18NExample example = getContext().getBean(I18NExample.class); example.execute(); }