public void setName(String name) {
    this.name = name;
  }
Takes care of instantiating detached spock Mocks.

Spring integration of spock mocks is heavily inspired by
Springokito {@see https://bitbucket.org/kubek2k/springockito}.

@author Leonard Bruenings
spock-spring/src/main/java/org/spockframework/spring/xml/SpockMockFactoryBean.java