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

    CachedData data = CachedResponseTranscoder.INSTANCE.encode(response);
    assertEquals(data.getData(), encoded);
    assertEquals(data.getFlags(), 0);
}