@Test
public void matchAsCharSequence_subSequence_emptyAtEnd() {

  CharSequence match = first(">=").in("foo >= bar").get().subSequence(2, 2);
  assertThat(match.length()).isEqualTo(0);
  assertThat(match.toString()).isEmpty();
  assertThat(match.subSequence(0, 0).toString()).isEmpty();
  assertThrows(IndexOutOfBoundsException.class, () -> match.charAt(0));
  assertThrows(IndexOutOfBoundsException.class, () -> match.charAt(Integer.MAX_VALUE));
  assertThrows(IndexOutOfBoundsException.class, () -> match.charAt(Integer.MIN_VALUE));
  assertThrows(IndexOutOfBoundsException.class, () -> match.subSequence(-1, 1));
  assertThrows(IndexOutOfBoundsException.class, () -> match.subSequence(0, 1));
}