public function testMasterClient()
{
$master = $this->sentinel->getMasterClient($this->sentinelConfig->clustername);
$this->assertInstanceOf('Credis_Client', $master);
$this->assertEquals($this->redisConfig[0]['port'], $master->getPort());
$this->setExpectedException('CredisException', 'Master not found');
$this->sentinel->getMasterClient('non-existing-cluster');
}