@Override
  @Beta
  public <T> T Stub(Class<T> type) {
    throw invalidMockCreation();
  }
Creates a stub with the specified type. If enclosed in a variable assignment, the variable name will be
used as the stub's name.

Example:

<pre>
  def person = Stub(Person) // type is Person.class, name is "person"
</pre>

@param type the interface or class type of the stub
@param <T> the interface or class type of the stub

@return a stub with the specified type
spock-core/src/main/java/spock/mock/MockingApi.java