public function testWhereClausesCanBeRemoved()
 {
     // For this test it doesn't matter what type of relationship we have, so we'll just use HasOne
     $builder = new LMongoRelationResetStub();
     $parent = m::mock('LMongo\\Eloquent\\Model');
     $parent->shouldReceive('getKey')->andReturn(1);
     $relation = new HasOne($builder, $parent, 'foreign_key');
     $relation->where('foo', 'bar');
     $wheres = $relation->getAndResetWheres();
     $this->assertEquals('Basic', $wheres[0]['type']);
     $this->assertEquals('foo', $wheres[0]['column']);
     $this->assertEquals('bar', $wheres[0]['value']);
 }