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