/**
  * @group disconnected
  */
 public function testCanBeSerialized()
 {
     $connection1 = $this->getMockConnection('tcp://127.0.0.1:6379?slots=0-1364');
     $connection2 = $this->getMockConnection('tcp://127.0.0.1:6380?slots=1365-2729');
     $connection3 = $this->getMockConnection('tcp://127.0.0.1:6381?slots=2730-4095');
     $cluster = new RedisCluster();
     $cluster->add($connection1);
     $cluster->add($connection2);
     $cluster->add($connection3);
     $cluster->buildSlotsMap();
     $unserialized = unserialize(serialize($cluster));
     $this->assertEquals($cluster, $unserialized);
 }