/**
  * @throws \Synapse\File\FileException
  * @expectedException \Synapse\File\FileException
  */
 public function testGetMetaDataWithS3ThrowingExceptionThrowsFileException()
 {
     $this->setupFileService();
     $this->withHeadObjectThrowingException();
     $path = 'test';
     $this->fs->getFileSize($path);
 }
 public function testGetFileSize()
 {
     $this->setupFileService($this->cfg);
     $data = self::TEST_BASE_PATH;
     $path = 'test';
     $fileName = 'test.txt';
     $this->fs->save($path, $fileName, $data);
     $size = $this->fs->getFileSize($path . DIRECTORY_SEPARATOR . $fileName);
     $this->assertEquals(strlen(self::TEST_BASE_PATH), $size, 'Did not return expected file size');
 }