public ApplicationContext getApplicationContext() {
    if (getApplicationContextMethod == null) {
      throw new SpringExtensionException("Method 'TestContext.getApplicationContext()' was not found");
    }
    return (ApplicationContext) ReflectionUtil.invokeMethod(delegate, getApplicationContextMethod);
  }
Wrapper around Spring's TestContext class that works with Spring 2.5 and Spring 3.
spock-spring/src/main/java/org/spockframework/spring/SpringTestContext.java