How to access private variables for smart contract testing with mocha/chai

How would I access private variables (like a Counter) if I wanted to use them in mocha/chai tests

ERC721PresetMinterPauserAutoId uses also predefined ids for token, but the ids are auto generated.

Would I use a MockERC721PresetMinterPauserAutoId and expose also the private variables with the internal function?

:computer: Environment
@openzeppelin/contracts-upgradeable”: “^4.1.0”,
“truffle”: “^5.3.1”


contract ERC721PresetMinterPauserAutoIdUpgradeable {
   CountersUpgradeable.Counter private _tokenIdTracker;

:1234: Code to reproduce