Mocking GetLogger and other sdk methods for activity unit test

Hi team,

We want to mock some of the commonly used sdk methods GetInfo, GetLogger inside activity. Without it we are facing following error due to missing interceptor in the test context.

 panic: getActivityOutboundInterceptor: Not an activity context [recovered]
	panic: getActivityOutboundInterceptor: Not an activity context

So, far I have explored WithActivityTask but the method is not exposed in sdk.
Is there any way to set the outbound interceptor for testing context ?

Take a look at the interceptor sample, especially the test that sets up worker interceptor with test env. Is this what you are doing as well?

This worked. Thanks @tihomir