@Test(dataProvider = "encodeData")
public void decode(CachedResponse response, byte[] encoded) {

    CachedResponse decoded = CachedResponseTranscoder.INSTANCE.decode(new CachedData(0, encoded, CachedResponseTranscoder.INSTANCE.getMaxSize()));
    assertEquals(decoded, response);
}