LocaleInfo implements Cloneable, Externalizable { @Override public String toString() { return locale + ":" + charset; } LocaleInfo();  LocaleInfo(Locale locale);  LocaleInfo(Locale locale, String charset);   LocaleInfo(Locale locale, String charset, LocaleInfo fallbackLocaleInfo); static LocaleInfo parse(String name); Locale getLocale(); Charset getCharset(); boolean isCharsetSupported(); LocaleInfo assertCharsetSupported(); @Override boolean equals(Object o); @Override int hashCode(); @Override Object clone(); void writeExternal(ObjectOutput out); void readExternal(ObjectInput in); @Override String toString();  }
@Test public void toString_() { localeInfo = new LocaleInfo(Locale.US, "8859_1"); assertEquals("en_US:ISO-8859-1", localeInfo.toString()); }