@Test(timeout = 8000)
public void readAsStringANSII() throws Exception {

    ByteArrayInputStream input = new ByteArrayInputStream(new byte[]{48, 49, 50, 51});
    String actual = Main.readAsString(input, StandardCharsets.US_ASCII);
    assertEquals("0123", actual);
}