@Test
public void testGetCachedNoData() {

  Pair<Long, Long> contentLengthAndBytesCached =
      CacheUtil.getCached(
          new DataSpec(Uri.parse("test")), mockCache, /* cacheKeyFactory= */ null);
  assertThat(contentLengthAndBytesCached.first).isEqualTo(C.LENGTH_UNSET);
  assertThat(contentLengthAndBytesCached.second).isEqualTo(0);
}