public function testMarkFailed()
{
// See the notes in testMarkSuccessful().
$this->client->addResponse('PUT', 'https://api.recurly.com/v2/invoices/abcdef1234567890/mark_failed', 'invoices/mark_failed-200.xml');
$invoice = Recurly_Invoice::get('abcdef1234567890', $this->client);
$invoice->markFailed();
$this->assertEquals($invoice->state, 'failed');
}