public function testSend()
{
$command = new CreateSchedule('Dummy!', '2012-12-30T10:11:12', $this->mockCommand);
$command->description('Description!');
// Stub transport's sendRequest usage
$this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}/schedules"), $this->equalTo(TransportInterface::METHOD_POST), $this->equalTo((object) array('name' => 'Dummy!', 'description' => 'Description!', 'time' => '2012-12-30T10:11:12', 'command' => array('method' => TransportInterface::METHOD_POST, 'address' => "/api/{$this->mockClient->getUsername()}/thing/value", 'body' => "Dummy"))))->will($this->returnValue(4));
// Send command and get response
$scheduleId = $command->send($this->mockClient);
// Ensure we have a schedule id
$this->assertEquals(4, $scheduleId);
}