/*
* First, test using the French locale.
*/
marshaller.setProperty(XML.LOCALE, Locale.FRENCH);
String expected = getCitationXML("http://schemas.opengis.net/iso/19139/20070417/", "fra", "Création");
CitationDate ci = (CitationDate) XML.unmarshal(expected);
assertEquals(DateType.CREATION, ci.getDateType());
String actual = marshal(marshaller, ci);
assertXmlEquals(expected, actual, "xmlns:*");
/*
* Tests again using the Englisg locale.
*/
marshaller.setProperty(XML.LOCALE, Locale.ENGLISH);
expected = getCitationXML("http://schemas.opengis.net/iso/19139/20070417/", "eng", "Creation");
ci = (CitationDate) XML.unmarshal(expected);
assertEquals(DateType.CREATION, ci.getDateType());
actual = marshal(marshaller, ci);
assertXmlEquals(expected, actual, "xmlns:*");
pool.recycle(marshaller);
}