protected function setUp()
 {
     $this->uploadTreeId = 432;
     $this->pfileId = 32;
     $this->userId = 12;
     $this->groupId = 5;
     $this->timestamp = time();
     $this->clearingDao = M::mock(ClearingDao::classname());
     $this->agentLicenseEventProcessor = M::mock(AgentLicenseEventProcessor::classname());
     $this->clearingEventProcessor = new ClearingEventProcessor();
     $this->itemTreeBounds = M::mock(ItemTreeBounds::classname());
     $this->itemTreeBounds->shouldReceive("getItemId")->withNoArgs()->andReturn($this->uploadTreeId);
     $this->itemTreeBounds->shouldReceive("getPfileId")->withNoArgs()->andReturn($this->pfileId);
     $this->dbManager = M::mock(DbManager::classname());
     $this->dbManager->shouldReceive('begin')->withNoArgs();
     $this->dbManager->shouldReceive('commit')->withNoArgs();
     $this->clearingDecisionProcessor = new ClearingDecisionProcessor($this->clearingDao, $this->agentLicenseEventProcessor, $this->clearingEventProcessor, $this->dbManager);
     $this->assertCountBefore = \Hamcrest\MatcherAssert::getCount();
 }