@Test
public void testRenameHash() {

  byte[] oldkey = new byte[] { 65 };
  byte[] newkey = new byte[] { 66 };
  Map<byte[], byte[]> value = new HashMap<>();
  when(jedisCluster.type(any(byte[].class))).thenReturn("hash");
  when(jedisCluster.hgetAll(any(byte[].class))).thenReturn(value);
  rf.rename(oldkey, newkey);
  verify(jedisCluster, never()).rename(oldkey, newkey);
  verify(jedisCluster).type(oldkey);
  verify(jedisCluster).hgetAll(oldkey);
  verify(jedisCluster).hmset(newkey, value);
  verify(jedisCluster).del(oldkey);
}