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

  int key = 3;
  int value = 5;
  doThrow(new IOException("")).when(client).set(serializer.serialize(key), serializer.serialize(value), 100);
  cache.put(key, value, TimeUnit.MILLISECONDS, 100);
}