public function testResponseCanBeCreatedFromHttpResponse() { $response = JobProcessed::fromHttpResponse($this->getHttpResponseForResult()); $this->assertInstanceOf(JobProcessed::CLASS, $response); $this->setExpectedException(Exception\RuntimeException::CLASS); $response = JobProcessed::fromHttpResponse($this->getHttpResponse()); $response->getResult(); }