How to test register activities/workflows in a worker?

Hi, I have a code like this

func (bwc *BaseWorkerConfiguration) RegisterTemporalEntities(clientTemporal client.Client, taskQueue string) worker.Worker {
	worker := worker.New(clientTemporal, taskQueue, worker.Options{})


	return worker

and I want to test that the returned worker have registered the expected workflow/activities. I am having the problem that I need to pass a mocking of parameter clientTemporal, for this I am using mocks.Client struct, but when worker.New is called it is raising “Client must be created with client.Dial() or client.NewLazyClient()”. I need a help to test this function, what could be the best approach?