@Test
public void testReadFourLinesWithLfFollowedByCr() {

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