@Test
public void testRangeNotSatisfiable() {

  // Check success case.
  assertThat(errorExtractor.rangeNotSatisfiable(badRange)).isTrue();
  assertThat(errorExtractor.rangeNotSatisfiable(new IOException(badRange))).isTrue();
  assertThat(errorExtractor.rangeNotSatisfiable(new IOException(new IOException(badRange))))
      .isTrue();
  // Check failure case.
  assertThat(errorExtractor.rangeNotSatisfiable(statusOk)).isFalse();
  assertThat(errorExtractor.rangeNotSatisfiable(notFound)).isFalse();
  assertThat(errorExtractor.rangeNotSatisfiable(new IOException(notFound))).isFalse();
}