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

  doThrow(new ConnectionException("")).when(client).flushdb();
  cache.clear();
}