@Test
public void testResourceNotReady() {

  // Check success case.
  assertThat(errorExtractor.resourceNotReady(resourceNotReady)).isTrue();
  assertThat(errorExtractor.resourceNotReady(new IOException(resourceNotReady))).isTrue();
  assertThat(errorExtractor.resourceNotReady(new IOException(new IOException(resourceNotReady))))
      .isTrue();
  // Check failure case.
  assertThat(errorExtractor.resourceNotReady(statusOk)).isFalse();
  assertThat(errorExtractor.resourceNotReady(new IOException(statusOk))).isFalse();
  assertThat(errorExtractor.resourceNotReady(null)).isFalse();
}