@Test
public void testLocalizedRuleTitle() throws Exception {

    SLDParser parser = new SLDParser(styleFactory, input(LocalizedSLD));
    Style[] styles = parser.readXML();
    assertEquals("sldtitle", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getTitle().toString(Locale.JAPAN));
    assertEquals("english", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getTitle().toString(Locale.ENGLISH));
    assertEquals("english", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getTitle().toString(Locale.US));
    assertEquals("english", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getTitle().toString(Locale.US));
    assertEquals("italian", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getTitle().toString(Locale.ITALY));
    assertEquals("french", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getTitle().toString(Locale.FRENCH));
    assertEquals("canada french", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getTitle().toString(Locale.CANADA_FRENCH));
    assertEquals("sld abstract", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getAbstract().toString(Locale.JAPAN));
    assertEquals("english abstract", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getAbstract().toString(Locale.ENGLISH));
    assertEquals("english abstract", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getAbstract().toString(Locale.US));
    assertEquals("italian abstract", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getAbstract().toString(Locale.ITALY));
    assertEquals("french abstract", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getAbstract().toString(Locale.FRENCH));
    assertEquals("french abstract", styles[0].getFeatureTypeStyles()[0].getRules()[0].getDescription().getAbstract().toString(Locale.CANADA_FRENCH));
    assertStyles(styles);
}