@Test
public void testReaderToStringNoXMLEncode() throws Exception {

    Reader r = new StringReader("<root> \n" +
            "    <name>GeeksforGeeks</name> \n" +
            "    <address> \n" +
            "        <sector>142</sector> \n" +
            "        <location>Noida</location> \n" +
            "    </address> \n" +
            "</root> r");
    String s = Misc.readerToString(r, "23", false);
    assertEquals("<root> 23    <name>GeeksforGeeks</name> 23    <address> 23        <sector>142</sector> 23        <location>Noida</location> 23    </address> 23</root> r", s);
}