public function testHasComposerFile()
 {
     $repoConfig = array('url' => 'TEST_PERFORCE_URL', 'depot' => 'TEST_DEPOT_CONFIG', 'branch' => 'TEST_BRANCH_CONFIG');
     $driver = new PerforceDriver($repoConfig, $this->io, $this->config, $this->process, $this->remoteFileSystem);
     $process = $this->getMock('Composer\\Util\\ProcessExecutor');
     $arguments = array(array('depot' => 'TEST_DEPOT', 'branch' => 'TEST_BRANCH'), 'port' => 'TEST_PORT', 'path' => $this->testPath, $process, true, 'TEST');
     $perforce = $this->getMock('Composer\\Util\\Perforce', array('getComposerInformation'), $arguments);
     $perforce->expects($this->at(0))->method('getComposerInformation')->with($this->equalTo('//TEST_DEPOT_CONFIG/TEST_IDENTIFIER'))->will($this->returnValue('Some json stuff'));
     $driver->setPerforce($perforce);
     $driver->initialize();
     $identifier = 'TEST_IDENTIFIER';
     $result = $driver->hasComposerFile($identifier);
     $this->assertTrue($result);
 }