title: Mocking a Future Or in a Scala Spec
body: <p>I'm having trouble with Mockito to mock a response from a method that returns either an <code>Object</code> or an <code>Exception</code>. The mocked method's signature looks like this: </p>
  
  <p><code>def findResult(request: String): Future[Seq[String] Or MyException] =</code></p>
  
  <p>and in my Specs I'm trying to just return a succesful <code>Future</code>:</p>
  
  <p><code>when(client.findResult("1234")) thenReturn Future.successful[Seq[String] Or MyException](Seq("Hello"))</code></p>
  
  <p>This of course does not compile but what is the correct syntax?</p>