elem = new Element ("markupLanguage");
elem.addContent (mln);
textElem.addContent (elem);
XmlContentConverter conv = new XmlContentConverter ();
TextMD tmd = (TextMD) conv.toTextMD (textElem);
List<CharacterInfo> chinfos = tmd.getCharacterInfos();
assertTrue (chinfos.size() == 1);
CharacterInfo chinfo = chinfos.get(0);
assertEquals ("US-ASCII", chinfo.getCharset());
assertEquals ("LF", chinfo.getLinebreak ());
List<MarkupBasis> mkbases = tmd.getMarkupBases();
assertTrue (mkbases.size () == 1);
MarkupBasis mkbas = mkbases.get(0);
assertEquals ("HTML", mkbas.getValue());
assertEquals ("1.0", mkbas.getVersion());
List<MarkupLanguage> mklangs = tmd.getMarkupLanguages();
assertTrue (mklangs.size() == 1);
MarkupLanguage mklang = mklangs.get(0);
assertEquals (mln, mklang.getValue());
}