title: Grails java.io.File mocking
body: <p>Is there any way to mock a file for unit testing in Grails?</p>
  
  <p>I need to test file size and file type and it would help if I could mock these.</p>
  
  <p>Any link to a resource would help.</p>