title: Mockito pattern for a Spring web service call
body: <p>My class under test has this method</p>
  
  <pre><code>public SomeWebServiceResponse callDownstream(SomeWebServiceRequest request)  {
      return (SomeWebServiceResponse ) super.callService(request);
  }
  </code></pre>
  
  <p>the super method is just a call to Spring WS to make the call - in simplified form</p>
  
  <pre><code>response = getWebServiceTemplate().marshalSendAndReceive(this.getBaseURL(), 
      request);
  return response;
  </code></pre>
  
  <p>When I write a unit test it tried to make an actual web service call. I'm not clear how to mock this or rather what we should be mocking. </p>
  
  <p>Should I be loading a sample response from filesystem and looking for some string in it - in that case I'm only testing file loading.</p>
  
  <p>The actual call is in base class and I know we can't mock only that method. Any pointers?</p>