public function testRGBSend($red, $green, $blue)
{
// Build command
$command = new SetLightState($this->mockLight);
// Set expected payload
$xy = ColorConversion::convertRGBToXY($red, $green, $blue);
$this->stubTransportSendRequestWithPayload((object) array('xy' => array($xy['x'], $xy['y']), 'bri' => $xy['bri']));
// Ensure instance is returned
$this->assertEquals($command, $command->rgb($red, $green, $blue));
// Send
$command->send($this->mockClient);
}