client matchingservice.MatchingServiceClient,
testHooks testhooks.TestHooks,
partition, ok := queue.Partition().(*tqid.NormalPartition)
if !ok {
return nil, serviceerror.NewInvalidArgument("physical queue of normal partition expected")
}
cfg: cfg,
client: client,
partition: partition,
queue: queue,
testHooks: testHooks,
}, nil
}