public function shouldGetFile()
{
$expectedArray = array('file_name' => 'file1.txt', 'file_path' => 'dir/file1.txt');
$api = $this->getApiMock();
$api->expects($this->once())->method('get')->with('projects/1/repository/files', array('file_path' => 'dir/file1.txt', 'ref' => 'abcd1234'))->will($this->returnValue($expectedArray));
$this->assertEquals($expectedArray, $api->getFile(1, 'dir/file1.txt', 'abcd1234'));
}