public void GetCurrentNonMaster()
        {
            using (var dir = new SelfDeletingDirectory(Path.GetFullPath(Path.Combine(basePath, nameof(this.GetCurrentNonMaster)))))
            {
                Repository.Init(dir.Path, false);
                using (var repo = new Repository(dir.Path))
                {
                    var testFilePath = Path.Combine(dir.Path, "test.txt");
                    File.WriteAllText(testFilePath, "Some test data.");
                    Commands.Stage(repo, testFilePath);
                    var identity  = new Identity("Test Bot", "*****@*****.**");
                    var signature = new Signature(identity, DateTime.Now);
                    repo.Commit("Added test data", signature, signature);

                    var branchRepo = new BranchRepository(repo, mockup.Get <ICommitRepository>());

                    branchRepo.Add("side");
                    branchRepo.Checkout("side", new Signature(identity, DateTime.Now));

                    var current = branchRepo.GetCurrent();
                    Assert.Equal("side", current.FriendlyName);
                    Assert.Equal("refs/heads/side", current.CanonicalName);
                }
            }
        }