private MethodInfo createMethodInfoForCloseContextStoreProvider(SpockExecutionContext context, MethodKind kind) {
    MethodInfo result = new MethodInfo((Object target, Object... arguments) -> {
        context.getStoreProvider().close();
        return null;
      }
    );
    result.setKind(kind);
    return result;
  }
Executes a single Spec. Notifies its supervisor about overall execution
progress and every invocation of Spec code.
Supervisor also determines the error strategy.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/runtime/PlatformSpecRunner.java