public function itShouldWorksFine()
{
$files = FilesCommittedStub::createAllFiles();
$output = new PreCommitOutputWriter(ComposerTool::CHECKING_MESSAGE);
$this->shouldWriteOutput($output->getMessage());
$this->shouldHandleQuery(new ComposerFilesExtractorQuery($files), ComposerFilesResponseStub::createValidData());
$this->shouldWriteLnOutput($output->getSuccessfulMessage());
$this->composerToolCommandHandler->handle(new ComposerToolCommand($files, $this->errorMessage));
}