public final void isIn(Range<T> range) {
    if (!range.contains(checkNotNull(actual))) {
      failWithActual("expected to be in range", range);
    }
  }
@Test
  public void isInRange() {
    Range<Integer> oneToFive = Range.closed(1, 5);
    assertThat(4).isIn(oneToFive);

    expectFailureWhenTestingThat(6).isIn(oneToFive);
    assertThat(expectFailure.getFailure())
        .factValue("expected to be in range")
        .isEqualTo(oneToFive.toString());
  }