@Test
  public void testPassIllegalArgumentsToTheCacheConstructor() {
    final int illegalAdaptiveRate = -1;
    final int illegalLFUCacheFractionPromil =
        AbstractAdaptiveCountingMemoryCache.MIN_FRACTION_PROMIL - 1;
    mCache =
        createDummyAdaptiveCountingMemoryCache(
            mParamsSupplier,
            mCacheTrimStrategy,
            mValueDescriptor,
            illegalAdaptiveRate,
            1,
            2,
            illegalLFUCacheFractionPromil);
    assertNotNull(mCache);
    assertEquals(
        mCache.mLFUFractionPromil, AbstractAdaptiveCountingMemoryCache.DEFAULT_LFU_FRACTION_PROMIL);
    assertEquals(
        String.valueOf(mCache.mAdaptiveRatePromil),
        String.valueOf(AbstractAdaptiveCountingMemoryCache.DEFAULT_ADAPTIVE_RATE_PROMIL));
  }
test: pass illegal adaptive rate and illegal initial LFU cache fraction. expected result: fall
back and use the default adaptive rate and initial LFU fraction values.
imagepipeline-base/src/test/java/com/facebook/imagepipeline/cache/AbstractAdaptiveCountingMemoryCacheTest.java