PropertyResourceBundleUtils { public static ResourceBundle getBundle(String baseName) { return getBundle(baseName, SystemUtils.FILE_ENCODING); } private  PropertyResourceBundleUtils(); static ResourceBundle getBundle(String baseName); static ResourceBundle getBundle(String baseName, String encoding); static ResourceBundle getBundle(String baseName, Locale locale, String encoding); static ResourceBundle getBundle(String baseName, Locale locale, ClassLoader classLoader, String encoding);  }
@Test public void testGetBundle() { ResourceBundle resourceBundle = PropertyResourceBundleUtils.getBundle("META-INF.test", "UTF-8"); String expected = "测试名称"; String value = resourceBundle.getString("name"); Assert.assertEquals(expected, value); }