I am trying to test a small service with wiremock tests.
I am fine with stubbing out most of the third party service URLs however I run into problems when using client libraries that have their sanbox URL hardcoded.
The current example is for Braintree.
I want to stub a return for a call to "https://api.sandbox.braintreegateway.com:443"
I cannot override that value in the test properties.
(Ref for the hardcoding https://github.com/braintree/braintree_java/blob/9f619bb0dd019921caed1f344046078469fbf1f8/src/main/java/com/braintreegateway/Environment.java)
Is there a way I can configure wiremock to be aware of calls to https://api.sandbox.braintreegateway.com: and return a stubbed response?