public function testToArrayStub()
{
$httpClient = $this->getMock('Doctrine\\CouchDB\\HTTP\\Client');
$httpClient->expects($this->never())->method('request');
$attachment = Attachment::createStub('plain/text', 28, 2, $httpClient, '/');
$this->assertEquals(array('stub' => true), $attachment->toArray());
}