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

    ByteArrayInputStream input = new ByteArrayInputStream(new byte[]{0x04, 0x10, 0x04, 0x11});
    String actual = Main.readAsString(input, StandardCharsets.UTF_16);
    assertEquals("\u0410\u0411", actual);
}