### Question:
Assertions { public static int checkInRange(int value, int minimum, int maximum) throws IllegalArgumentException { return checkInRange(value, minimum, maximum, "value"); } private  Assertions(); static void checkArgument(boolean expression, String errorMessage); static void checkArgument(boolean expression,
                                   String messageTemplate,
                                   @Nullable Object... messageArgs); static void checkState(boolean expression, String errorMessage); static void checkState(boolean expression,
                                String messageTemplate,
                                @Nullable Object... messageArgs); static int checkInRange(int value, int minimum, int maximum); static int checkInRange(int value, int minimum, int maximum, String valueName); static long checkInRange(long value, long minimum, long maximum); static long checkInRange(long value, long minimum, long maximum, String valueName);  }### Answer:
@Test public void checkInRangeShouldIncludeBoundaries() { Assert.assertEquals(22, Assertions.checkInRange(22, 22, 24)); Assert.assertEquals(23, Assertions.checkInRange(23, 22, 24)); Assert.assertEquals(24, Assertions.checkInRange(24, 22, 24)); }
@Test(expected = IllegalArgumentException.class) public void checkInRangeShouldFailOnLessThanMinimum() { Assertions.checkInRange(21, 22, 24); }
@Test(expected = IllegalArgumentException.class) public void checkInRangeShouldFailOnMoreThanMaximum() { Assertions.checkInRange(25, 22, 24); }