Problem
In java SDK there is a MirrorNodeContractEstimateGasQuery which can be used for gas estimation queries. Currently we perform manually a contract call with given parameters.
Solution
Adapt the tests to use MirrorNodeContractEstimateGasQuery from the SDK
Alternatives