title: Using JMockit, how do I mock an interface method for specific input parameter values?
body: <p>Let's say I have an interface <code>Foo</code> with method <code>bar(String s)</code>. The only thing I want mocked is <code>bar("test");</code>.</p>
  
  <p>I cannot do it with static partial mocking, because I only want the <code>bar</code> method mocked when "test" argument is being passed. I cannot do it with dynamic partial mocking, because this is an interface and I also do not want the implementation constructor mocked. I also cannot use interface mocking with <code>MockUp</code>, because I have no ability to inject mocked instance, it is created somewhere in code.</p>
  
  <p>Is there something I am missing?</p>