Mock external dependency that returns a Future of list : <p>I have a class which have external dependency that returns future of lists.
How to mock the external dependency? </p>

<pre><code> public void meth() {
     //some stuff
     Future&lt;List&lt;String&gt;&gt; f1 = obj.methNew("anyString")
     //some stuff
 }

 when(obj.methNew(anyString()).thenReturn("how to intialise some data here, like list of names")
</code></pre>
