@Test
public void testStringZeroByteStream() throws Exception {

    String s = IoUtils.toUtf8String(new InputStream() {
        @Override
        public int read() throws IOException {
            return -1;
        }
    });
    assertEquals("", s);
}