*
* @see #testMarshallLanguageCode()
*/
@Test
public void testMarshallCharacterString() throws JAXBException {
final MetadataMock metadata = new MetadataMock(Locale.JAPANESE);
final Marshaller marshaller = pool.acquireMarshaller();
marshaller.setProperty(XML.STRING_SUBSTITUTES, new String[] {"dummy","language","foo"});
assertArrayEquals(new String[] {"language"}, (String[]) marshaller.getProperty(XML.STRING_SUBSTITUTES));
assertXmlEquals(getMetadataXML(CHARACTER_STRING), marshal(marshaller, metadata), "xmlns:*");
pool.recycle(marshaller);