public function testEffectSend($mode)
{
// Build command
$command = new SetLightState($this->mockLight);
// Set expected payload
$this->stubTransportSendRequestWithPayload((object) array('effect' => $mode));
// Ensure instance is returned
$this->assertEquals($command, $command->effect($mode));
// Send
$command->send($this->mockClient);
}