### Question:
MessageUtils { public static String getMessage(String code, Object... additions) { try { ResourceBundle bundle = getBundle(code); String resource = bundle.getString(code); return format(resource, (Object[]) additions); } catch (MissingResourceException e) { return code; } } private  MessageUtils(); static String format(String pattern, Object... arguments); static String getMessage(String code, Object... additions);  }### Answer:
@Test public void testGetMessage() { String message; message = MessageUtils.getMessage("IAAA-000001"); assertEquals("abcdef", message); message = MessageUtils.getMessage("IAAA-000002", "12", 34); assertEquals("abc12def34ghi", message); message = MessageUtils.getMessage("IBBB-000001"); assertEquals("xyz", message); message = MessageUtils.getMessage("IAAA-000001", "12", 34); assertEquals("abcdef", message); message = MessageUtils.getMessage("IBBB-000002"); assertEquals("IBBB-000002", message); message = MessageUtils.getMessage("ICCC-000001"); assertEquals("ICCC-000001", message); }