public CacheEventAssert hasCacheSize(long expected) {
    Assertions.assertThat(actual.getCacheSize())
        .overridingErrorMessage(
            "Cache event mismatch - cache size <%s> does not match <%s>",
            actual.getCacheSize(), expected)
        .isEqualTo(expected);
    return this;
  }
Assertion methods for {@link CacheEvent}s.

<p>To create an instance of this class, invoke <code>
{@link CacheEventAssert#assertThat(CacheEvent)}</code>.
imagepipeline-base/src/test/java/com/facebook/cache/common/CacheEventAssert.java