@Test
public void testInputStream2String() throws IOException {

    assertNull(StringUtils.inputStream2String(null));
    String data = "abc\n"
            + ":\"klsdf\n"
            + "2ks,x:\".,-3sd˚ø≤ø¬≥";
    ByteArrayInputStream inputStream = new ByteArrayInputStream(data.getBytes(Constants.DEFAULT_CHARSET));
    assertThat(StringUtils.inputStream2String(inputStream)).isEqualTo(data);
}