Mocking Workflow.getVersion in Junit

Hi,
Is there any example to mock Workflow.getVersion in Junit?
The current test cases are working as expected but after adding the version, I start getting below exception

java.lang.Error: Called from non workflow or workflow callback thread
	at io.temporal.internal.sync.DeterministicRunnerImpl.currentThreadInternal(DeterministicRunnerImpl.java:131)
	at io.temporal.internal.sync.WorkflowInternal.getWorkflowInterceptor(WorkflowInternal.java:331)
	at io.temporal.internal.sync.WorkflowInternal.getVersion(WorkflowInternal.java:360)
	at io.temporal.workflow.Workflow.getVersion(Workflow.java:1174)

I am checking the version inside the activity.

Thanks,

Can’t call Workflow.gerVersion from activity, only in workflow code. Can you give more info on what you are trying to test?