title: Unable to mock the findAll() method from JPA Repository with JMockit
body: <p>I have a service implementation with a method <code>getOne</code> that makes a call to <code>findById</code> at the repository layer. (My repository extends JpaRepository, so I did not have to implement <code>findAll</code> myself.) I have tried to mock <code>findAll</code> to return a new Facility with the code below.</p>
  
  <pre><code>new MockUp&lt;FacilityRepository&gt;() {
  
      @Mock
      public Facility findById(int id) {
          return new Facility(1, new Date(), "Active");
      }
  };
  </code></pre>
  
  <p>My issue is that when I invoke <code>getOne</code> from the service implementation, I expected the mock <code>findAll</code> to be called and the mock Facility to be returned. But it doesn't and leaves me stumped. Why isn't the mock method being called?</p>
  
  <p>Very new to JMockit, so any help would be appreciated. </p>