@Test
public void precedingBeforeFollowing() {

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