@Test
public void rightShiftLargerThanLeftShiftWithFollowinggWindow() {

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