LocalizedValueUtil { public static LocalizedValue toLocalizedValue( Map<String, Object> localizedValues) { if (localizedValues == null) { return null; } LocalizedValue localizedValue = new LocalizedValue(); for (Map.Entry<String, Object> entry : localizedValues.entrySet()) { localizedValue.addString( LocaleUtil.fromLanguageId(entry.getKey()), GetterUtil.getString(entry.getValue())); } return localizedValue; }  @Deprecated static Object getLocalizedValue(
		Locale locale, Map<String, Object> localizedValues); static JSONObject toJSONObject(Map<String, V> map); static Map<Locale, String> toLocaleStringMap(
		Map<String, Object> localizedValues); static LocalizedValue toLocalizedValue(
		Map<String, Object> localizedValues); static LocalizedValue toLocalizedValue(
		Map<String, Object> localizedValues, Locale locale); @Deprecated static Map<String, V> toLocalizedValues(JSONObject jsonObject); static Map<String, Object> toLocalizedValuesMap(
		LocalizedValue localizedValue); static Map<String, Object> toStringObjectMap(
		Map<Locale, String> localizedValues);  }
@Test public void testToLocalizedValueEmptyMap() { Assert.assertEquals( new LocalizedValue(LocaleUtil.US), LocalizedValueUtil.toLocalizedValue(new HashMap<>())); }
@Test public void testToLocalizedValueNullValue() { Assert.assertNull(LocalizedValueUtil.toLocalizedValue(null)); }
@Test public void testToLocalizedValueValidMap() { LocalizedValue localizedValue = LocalizedValueUtil.toLocalizedValue( HashMapBuilder.<String, Object>put( "en_US", "en_US" ).build()); Assert.assertEquals("en_US", localizedValue.getString(LocaleUtil.US)); }