static public String toString(InputStream input, String encoding) throws IOException {
        return (null == encoding) ? toString(new InputStreamReader(input, StandardCharsets.UTF_8)) : toString(new InputStreamReader(
            input, encoding));
    }
@Test
    public void testToString() throws Exception {
        byte[] b = "testToString".getBytes(StandardCharsets.UTF_8);
        InputStream is = new ByteArrayInputStream(b);

        String str = IOTinyUtils.toString(is, null);
        assertEquals("testToString", str);

        is = new ByteArrayInputStream(b);
        str = IOTinyUtils.toString(is, StandardCharsets.UTF_8.name());
        assertEquals("testToString", str);

        is = new ByteArrayInputStream(b);
        Reader isr = new InputStreamReader(is, StandardCharsets.UTF_8);
        str = IOTinyUtils.toString(isr);
        assertEquals("testToString", str);
    }