Legacy Code Trivia in groovy using spock test framework