/**
* @version $Revision$ $Date$
*/
public class LocalizedStringTest extends TestCase {
public void testEquals() {
LocalizedString ls1 = new LocalizedStringImpl(Locale.US, "Equal", "UTF-8");
LocalizedString ls2 = new LocalizedStringImpl(Locale.US, "Equal", "UTF-8");
assertTrue(ls1.equals(ls2));
assertTrue(ls2.equals(ls1));
ls2 = new LocalizedStringImpl(Locale.US, "NotEqual", "UTF-8");
assertFalse(ls1.equals(ls2));
assertFalse(ls2.equals(ls1));
ls2 = new LocalizedStringImpl(Locale.US, "Equal", "US-ASCII");
assertFalse(ls1.equals(ls2));
assertFalse(ls2.equals(ls1));
}