### Question:
LocalisedMessages implements TemplateMethodModelEx { public String getMessage(String key, Object... args) { String message = this.messages.getString(key); return MessageFormat.format(message, args); } LocalisedMessages(String bundleResourceName, Locale locale); String getMessage(String key, Object... args); @Override Object exec(List arguments);  }### Answer:
@Test public void testGetMessage() { System.out.println("getMessage"); LocalisedMessages instance = new LocalisedMessages("messages", Locale.ENGLISH); String expResult = "Generated from TESZT database table."; String result = instance.getMessage("generatedFrom", "TESZT"); assertEquals(expResult, result); }