How to override uvm_object from test

In reply to kartavya:

Kartavya,

There is a way to override a particular instance of the uvm_object given that you update the creation of that object by having some dummy path and using the same dummy path while doing set_inst_override. But you said, you can’t update the external VIP.

Did you try any of the following methods suggested by “haitao73” & “tudor.timi” above?
So how did you solve this? Just curious to know the solution for this.