public function testGetConsumerByKey()
 {
     $consumerKey = 'bar';
     $this->query->expects($this->once())->method('filterByConsumerKey')->with($this->equalTo('bar'));
     $this->query->expects($this->once())->method('findOne');
     $this->consumerProvider->getConsumerByKey($consumerKey);
 }
 public function testLoadAccessTokens()
 {
     $this->query->expects($this->once())->method('find');
     $this->tokenProvider->loadAccessTokens();
 }