public function testGetCurrentBranch()
{
$vcs = new Hg();
$this->assertEquals('default', $vcs->getCurrentBranch());
system("hg branch -q foo");
$this->assertEquals('foo', $vcs->getCurrentBranch());
exec("hg update -q default");
$this->assertEquals('default', $vcs->getCurrentBranch());
}