assertEquals(1, locales.length);
assertEquals("(default)", locales[0].getTitle());
}
// add locales
{
editableSource.addLocale(new LocaleInfo(new Locale("it")), LocaleInfo.DEFAULT);
editableSource.addLocale(new LocaleInfo(new Locale("fr")), null);
}
// check new locales
{
LocaleInfo[] locales = editableSource.getLocales();