Example of using GroovySpy for mocking java.io.File