Messages { public String getMessage(MESSAGE_ID messageId) { return this.resourceBundle.getString(messageId.id); } private  Messages(Locale locale); static Messages getInstance(); static Messages getInstance(Locale locale); String getMessage(MESSAGE_ID messageId); Locale getLocale();  }
@Test public void getMessage() { Locale locale = Locale.getDefault(); Messages messages = Messages.getInstance(locale); assertNotNull(messages.getMessage(Messages.MESSAGE_ID.INSERT_CARD_QUESTION)); System.out.println("done msg: " + messages.getMessage(Messages.MESSAGE_ID.DONE)); }