@Test
public void rightShiftLargerThanLeftShiftWithPrecedingWindow() {

  Throwable thrown =
      assertThrows(
          IllegalArgumentException.class,
          () -> WindowFrame.builder().setLeftPreceding(5).setRightPreceding(10).build());
  assertTrue(
      thrown
          .getMessage()
          .contains("must be greater than the number preceding at the end of the window "));
}