@Beta
  public <T> T Stub(
    @ClosureParams(ClosureParameterTypeFromVariableType.class)
      Closure interactions) {
    throw invalidMockCreation();
  }
Creates a stub with the specified interactions whose type and name are inferred
from the left-hand side of the enclosing assignment.

Example:

<pre>
  // type is Person.class, name is "person", returns hard-coded values for property {@code name} and method {@code sing()}
  Person person = Stub {
    name >> "Fred"
    sing() >> "Tra-la-la"
  }
</pre>

@param interactions a description of the stub's interactions

@return a stub with the specified interactions whose type and name are inferred
from the left-hand side of the enclosing assignment
spock-core/src/main/java/spock/mock/MockingApi.java