private void writeReadAndAssert(final Locale locale, final String id)
{
final LocaleConverter converter = new LocaleConverter();
final String str = converter.toString(locale);
assertEquals(id, str);
final Locale l = converter.fromString(str);
if (id == null) {
assertNull(l);
} else {
assertEquals(id, l.toString());
}