public function testSetName()
{
// Expect client's sendCommand usage
$this->mockClient->expects($this->once())->method('sendCommand')->with($this->isInstanceOf('\\Phue\\Command\\SetBridgeConfig'))->will($this->returnValue($this->bridge));
// Ensure setName returns self
$this->assertEquals($this->bridge, $this->bridge->setName('new name'));
// Ensure new name can be retrieved by getName
$this->assertEquals('new name', $this->bridge->getName());
}