@Test
public void invalidate() throws ConnectionException, IOException {

  int key = 3;
  int value = 5;
  doReturn(serializer.serialize(value)).when(client).expire(serializer.serialize(key));
  int actualValue = cache.invalidate(key);
  assertEquals(value, actualValue);
  verify(evictionListener).onEviction(key, value);
}