public function test_rangeNode_disbursementDate_is()
{
$knownId = "deposittransaction";
$now = new DateTime("2013-04-10");
$past = clone $now;
$past->modify("-1 day");
$future = clone $now;
$future->modify("+1 day");
$future2 = clone $now;
$future2->modify("+2 days");
$collection = Braintree\Transaction::search([Braintree\TransactionSearch::id()->is($knownId), Braintree\TransactionSearch::disbursementDate()->is($past)]);
$this->assertEquals(0, $collection->maximumCount());
$collection = Braintree\Transaction::search([Braintree\TransactionSearch::id()->is($knownId), Braintree\TransactionSearch::disbursementDate()->is($now)]);
$this->assertEquals(1, $collection->maximumCount());
$this->assertEquals($knownId, $collection->firstItem()->id);
$collection = Braintree\Transaction::search([Braintree\TransactionSearch::id()->is($knownId), Braintree\TransactionSearch::disbursementDate()->is($future)]);
$this->assertEquals(0, $collection->maximumCount());
}