public function testReference()
 {
     $address = Address::reference('ACCOUNT_ID', 'ADDRESS_ID');
     $this->assertEquals(ResourceType::ADDRESS, $address->getResourceType());
     $this->assertEquals('/v2/accounts/ACCOUNT_ID/addresses/ADDRESS_ID', $address->getResourcePath());
 }
 public function testGetAddressTransactions()
 {
     $address = Address::reference('ACCOUNT_ID', 'ADDRESS_ID');
     $expected = new ResourceCollection();
     $response = $this->getMock(ResponseInterface::class);
     $this->http->expects($this->any())->method('get')->with('/v2/accounts/ACCOUNT_ID/addresses/ADDRESS_ID/transactions', ['foo' => 'bar'])->willReturn($response);
     $this->mapper->expects($this->any())->method('toTransactions')->with($response)->willReturn($expected);
     $actual = $this->client->getAddressTransactions($address, ['foo' => 'bar']);
     $this->assertSame($expected, $actual);
 }