@Test
void inputStream2Bytes() {

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