@Test
public void followingBeforeCurrentRow() {

  Throwable thrown =
      assertThrows(
          IllegalArgumentException.class,
          () -> WindowFrame.builder().setLeftFollowing(10).setRightCurrentRow().build());
  assertTrue(thrown.getMessage().contains("FOLLOWING cannot come before CURRENT_ROW"));
}