public function testSetLights()
{
// Stub client's sendCommand method
$this->mockClient->expects($this->once())->method('sendCommand')->with($this->isInstanceOf('\\Phue\\Command\\SetGroupAttributes'))->will($this->returnValue($this->group));
// Ensure setLights return self
$this->assertEquals($this->group, $this->group->setLights(array(1, 2, 3, 4)));
// Ensure lights can be retrieved by getLights
$this->assertEquals(array(1, 2, 3, 4), $this->group->getLightIds());
}