@Test
public void testAsciiUTF() throws IOException {

  final String foreignText = "abcdefghijklmnopqrstuvwxyz";
  final byte[] utf8ByteArray = createUTF8ByteArray(foreignText);
  final int length = utf8ByteArray.length;
  System.out.println("char length:" + foreignText.length() +
      " utf8BytesLength:" + utf8ByteArray.length + " for:" + foreignText);
  final Pair<Integer, Integer> pair = FileIOUtils.getUtf8Range(utf8ByteArray, 1,
      length - 6);
  System.out.println("Pair :" + pair.toString());
  final String recreatedString = new String(utf8ByteArray, 1, length - 6, "UTF-8");
  System.out.println("recreatedString:" + recreatedString);
  final String correctString = new String(utf8ByteArray, pair.getFirst(),
      pair.getSecond(), "UTF-8");
  System.out.println("correctString:" + correctString);
  assertEquals(pair, new Pair<>(1, 20));
  // Two characters stripped from this.
  assertEquals(correctString.length(), foreignText.length() - 6);
}