private void verifyIsLayer2(CachedLayer cachedLayer) throws IOException {
    Assert.assertEquals("layerBlob2", Blobs.writeToString(decompress(cachedLayer.getBlob())));
    Assert.assertEquals(layerDigest2, cachedLayer.getDigest());
    Assert.assertEquals(layerDiffId2, cachedLayer.getDiffId());
    Assert.assertEquals(layerSize2, cachedLayer.getSize());
  }
Verifies that {@code cachedLayer} corresponds to the second fake layer in {@link #setUp}.

@param cachedLayer the {@link CachedLayer} to verify
@throws IOException if an I/O exception occurs
jib-core/src/test/java/com/google/cloud/tools/jib/cache/CacheTest.java