public function testGetFreeSpaceWithDir()
 {
     $this->api = $this->getMock('Martial\\Transmission\\API\\RpcClient', ['sessionGet', 'getSessionId', 'freeSpace'], [$this->httpClient, '', '']);
     $this->api->method('sessionGet')->willReturn([Session\Get::DOWNLOAD_DIR => '/a/b/c']);
     $this->client = new TransmissionClient($this->api);
     $this->api->expects($this->once())->method('freeSpace')->with(null, '/d/e/f')->willReturn(['size-bytes' => 12345]);
     $this->assertEquals(12345, $this->client->getFreeSpace('/d/e/f'));
 }