@Test
public void testReadTwoLinesWithCrFollowedByLf() {

  byte[] bytes = new byte[] {
    'f', 'o', 'o', '\r', '\n', 'b', 'a', 'r'
  };
  ParsableByteArray parser = new ParsableByteArray(bytes);
  assertThat(parser.readLine()).isEqualTo("foo");
  assertThat(parser.readLine()).isEqualTo("bar");
  assertThat(parser.readLine()).isNull();
}