public function testSetAutoDelete()
{
// Stub client's sendCommand method
$this->mockClient->expects($this->once())->method('sendCommand')->with($this->isInstanceOf('\\Phue\\Command\\SetScheduleAttributes'))->will($this->returnValue($this->schedule));
// Ensure setAutoDelete returns self
$this->assertEquals($this->schedule, $this->schedule->setAutoDelete(true));
// Ensure autodelete can be retrieved by isAutoDeleted
$this->assertEquals(true, $this->schedule->isAutoDeleted());
}