The field "mapper" is shared (@Shared) but initialized before every feature method (in "setup()"). Either remove the @Shared annotation or move the initialization to a "setupSpec()" method. See: https://code.google.com/p/spock/wiki/SpockBasics#Fields