public function testRequest()
{
$responseMock = Mockery::mock('Psr\\Http\\Message\\ResponseInterface');
$this->resource->setOptions(['async' => false]);
$this->clientMock->shouldReceive('sendRequest')->andReturn($responseMock);
$this->assertInstanceOf('SparkPost\\SparkPostResponse', $this->resource->request('POST', 'transmissions', $this->postTransmissionPayload));
$promiseMock = Mockery::mock('Http\\Promise\\Promise');
$this->resource->setOptions(['async' => true]);
$this->clientMock->shouldReceive('sendAsyncRequest')->andReturn($promiseMock);
$this->assertInstanceOf('SparkPost\\SparkPostPromise', $this->resource->request('GET', 'transmissions', $this->getTransmissionPayload));
}