public function testReject()
{
$onReject = $this->getMock('\\Repo2\\QueryReactor\\Tests\\Stub');
$onReject->expects($this->once())->method('__invoke');
$query = new GenericQuery(Fixtures::getSelect(), null, $onReject);
$this->assertNull($query->reject(new \Exception()));
}