@Test
public void testReadString() throws IOException {

    String expected = "foobar;baz;qux;whatIsThat\r\n\nErrorFoo    öäöäöäöäöä";
    byte[] in = expected.getBytes(StandardCharsets.UTF_8);
    String actual = IOHelper.readString(new ByteArrayInputStream(in));
    assertEquals(expected, actual);
    String longString = Collections.nCopies(1000, expected).stream()
            .collect(Collectors.joining("::"));
    in = longString.getBytes(StandardCharsets.UTF_8);
    String actualLongString = IOHelper.readString(new ByteArrayInputStream(in));
    assertEquals(longString, actualLongString);
}