@Test
public void readLongString() throws IOException {

  char theChar = '*';
  final byte[] bytes = new byte[10002];
  String expectedString = "";
  for (int i = 0; i < bytes.length - 2; i++) {
    bytes[i] = (byte) theChar;
    expectedString += theChar;
  }
  bytes[bytes.length - 2] = '\r';
  bytes[bytes.length - 1] = '\n';
  setupInputStreamRead(bytes, SIZE);
  String actualString = reader.readString();
  assertEquals(expectedString, actualString);
}