title: Mockito varargs Invalid use of argument matchers
body: <p><strong><em>Test</em></strong></p>
  
  <pre><code>@RunWith(SpringRunner.class)
  @SpringBootTest(classes = MockabstractionApplication.class)
  public class SimpleTest {
  
      @SpyBean
      private SimpleService spySimpleService;
  
      @Before
      public void setup() {
          initMocks(this);
      }
  
      @Test //fails
      public void test() throws Exception {
          when(spySimpleService.test(1, Mockito.&lt;String&gt;anyVararg())).thenReturn("Mocked!");
      }
  
  }
  </code></pre>
  
  <p><strong><em>Service</em></strong></p>
  
  <pre><code>@Service
  public class SimpleService {
  
      public String test(int i, String... args) {
          return "test";
      }
  
  }
  </code></pre>
  
  <p>Test fails with the next message:</p>
  
  <blockquote>
    <p>org.mockito.exceptions.misusing.InvalidUseOfMatchersException: 
    Invalid use of argument matchers! 2 matchers expected, 1 recorded:</p>
  </blockquote>
  
  <p>I have to use int as 1st argument and any amount of varargs.</p>