title: PagedResultList Instance in Grails 3.1.7 Unit Test
body: <p>Is it possible to create PagedResultList instance or Mock?</p>
  
  <p>For Background: Currently I´m writing Controller Unit tests. If it is necessary I stubbing Service function calls. But some of this functions have <code>PagedResultList</code> as return type. So i have to inject a <code>PagedResultList</code> instance or <code>null</code>. </p>
  
  <p>In some cases I need an instance because the controller do something like this:</p>
  
  <pre><code>testFunction(){
      def result = sampleService.doSomething()
  
      if (result.empty) {
          variable = "it´s empty"
      }
      render variable
  }
  </code></pre>
  
  <p>My Test looking like this:</p>
  
  <pre><code>void "sample Test"(){
      given:
          controller.sampleService = Mock(SampleService)
          PagedResultList emptyPagedResultList = ?????
  
      when:
          controller.testFunction()
  
      then:
          1 * controller.sampleService.doSomething() &gt;&gt; emptyPagedResultList
          response.text == "it´s empty"
  }
  </code></pre>
  
  <p>Someone can help me to replace the <code>?????</code> with a pice of code to fix this issue?</p>
  
  <p>Thanks in advance.</p>