DataprepBundle extends SpringBundle { public static String errorTitle(ErrorCode errorCode, Object... values) { return INSTANCE.getMessage(getErrorTitleKey(errorCode), values); } private  DataprepBundle(); static String message(String key, Object... params); static String defaultMessage(String key, Object... params); static String errorTitle(ErrorCode errorCode, Object... values); static DataprepBundle getDataprepBundle();  }
@Test public void errorTitle() throws Exception { String producedKey = CommonErrorCodes.ILLEGAL_ORDER_FOR_LIST.name() + ".TITLE"; assertEquals(messagesProperties.getProperty(producedKey), DataprepBundle.errorTitle(CommonErrorCodes.ILLEGAL_ORDER_FOR_LIST)); }