public <R> R withActiveThreadAwareMocks(Callable<R> code) {
    return getSpecificationContext().getThreadAwareMockController().withActiveThreadAwareMocks(code);
  }
Runs the code with the thread-aware mocks activated on the current {@link Thread}.

<p>Note: You only need this if your current {@code Thread} is not the test thread.
On the test {@code Thread}, the thread-aware mocks are automatically activated.</p>

@param <R>  the return type
@param code the code to execute
@return the return value of the executed code
spock-core/src/main/java/spock/mock/MockingApi.java