@Test(expected = RedisCacheException.class)
public void invalidateConnectionException() throws ConnectionException, IOException {

  int key = 3;
  doThrow(new ConnectionException("")).when(client).expire(serializer.serialize(key));
  cache.invalidate(key);
}