public function testWillThrowAnExceptionWhenRequestBodyIsInvalid() { $this->request->expects($this->once())->method('getContent')->will($this->returnValue('some string')); $this->getNewResource()->createShortUrl($this->event); }