@Test
public void testShowTextMD() throws IOException {

	final TextMDMetadata textMD = new TextMDMetadata();
	textMD.setCharset("UTF-8");
	textMD.setLanguage("fr");

	JsonObjectBuilder b = this.handler.showTextMDMetadata(textMD);
	buildJson(b);
       handler.close();
       
	String result = outString.toString();
	LOGGER.info(FIND + result);
	final String expected = "{\"textmd:charset\":\"UTF-8\",\"textmd:byte_order\":\"big\"," +
			"\"textmd:linebreak\":\"CR/LF\",\"textmd:language\":\"fre\"}";
    assertEquals(expected, result);
}