def test_get_current_branch(self):
        """Test that _get_current_branch returns the correct branch name."""
        branch = self.git_handler._get_current_branch()
        self.assertEqual(branch, 'feature-branch')
        print('executed commands:', self.executed_commands)

        # Verify the command was executed
        self.assertTrue(
            any(
                cmd == 'git --no-pager rev-parse --abbrev-ref HEAD'
                for cmd, _ in self.executed_commands
            )
        )
Test that _get_current_branch returns the correct branch name.
tests/unit/test_git_handler.py