public function shouldReturnSandboxIpnEndpointIfSandboxSetTrueInConstructor()
{
$api = new Api(array('sandbox' => true), $this->createHttpClientMock(), $this->createHttpMessageFactory());
$this->assertEquals('https://www.sandbox.paypal.com/cgi-bin/webscr', $api->getIpnEndpoint());
}