MessageManager { protected String getMessagePattern(String messageId, Locale locale) { String message = null; for (String basename : basenames) { ResourceBundle bundle = getResourceBundle(basename, locale); message = getStringOrNull(bundle, messageId); if (message != null) { break; } } if (message == null && throwIfResourceNotFound) { StringBuilder sb = new StringBuilder("key[").append(messageId) .append("] is not found"); throw new MessageRuntimeException(sb.toString()); } return message; } MessageManager(String configFile);  MessageManager(String configFile, String messageIdFormatKey,
                          String messageBaseNameKey,
                          String throwIfResourceNotFoundKey,
                          String messageFormatterFqcnKey); String getMessage(boolean resource, String messageIdOrPattern,
            Object... args); String getMessage(boolean resource, String messageIdOrPattern,
            Locale locale, Object... args);  }
@Test public void testGetMessage01() { MessageManager manager = new MessageManager("META-INF/terasoluna-logger.properties"); assertNull(manager.getMessagePattern("hoge", null)); assertNull(manager.getMessagePattern(null, null)); }