title: org.mockito.exceptions.misusing.InvalidUseOfMatchersException: While writing unit test
body: <p>When I want to test my method I got this error, I am new to unit testing. Not able to find the exact issue.Seems like error in the second last line of the test method while printing <code>test6</code> log.
  Any suggestion !</p>
  <pre><code>12 Jul 2021 13:51:54,915 [INFO ]  (main) amazon.platform.config.AppConfigTree:1756: No appgroup found
  test1
  test2
  test3
  test4
  test5
  
  org.mockito.exceptions.misusing.InvalidUseOfMatchersException: 
  Invalid use of argument matchers!
  4 matchers expected, 3 recorded:
  
  This exception may occur if matchers are combined with raw values:
      //incorrect:
      someMethod(anyObject(), &quot;raw String&quot;);
  When using matchers, all arguments have to be provided by matchers.
  For example:
      //correct:
      someMethod(anyObject(), eq(&quot;String by matcher&quot;));
  
  For more info see javadoc for Matchers class.
  </code></pre>
  <p><strong>This is the class that I want to test.</strong></p>
  <pre class="lang-java prettyprint-override"><code>public String addCommitAndPushUntrackedChanges(final String deviceName, final List&lt;String&gt; filesList)
              throws GitAPIException, IOException, DependencyFailureException {
          final String tempCommitBranchName = String.format(&quot;Add Sync &quot;
                  + &quot;rules : [%s]&quot;, deviceName);
          final File gitFile = new File(String.join(&quot;/&quot;, CLONED_REPO_PATH, &quot;.git&quot;));
          String CommitId = jgitAccessor.addAndCommitUntrackedChanges(gitFile, deviceName, tempCommitBranchName, filesList);
          gitFarmServiceAccessor.loadTmpSshTicket();
          jgitAccessor.pushToTemporaryBranch(gitFile, REPO_URI, deviceName);
          return CommitId;
      }
  </code></pre>
  <p><strong>This is the test method</strong></p>
  <pre class="lang-java prettyprint-override"><code>  @InjectMocks
      CreateIngestionRulesTaskBuilder builder;
  
  @Test
      public void addCommitAndPushUntrackedChanges_happyCase() throws Exception {
          System.out.println(&quot;test1&quot;);
          Mockito.doNothing().when(gitFarmServiceAccessor).loadTmpSshTicket();
          System.out.println(&quot;test2&quot;);
          System.out.println(&quot;test3&quot;);
          Mockito.doNothing().when(jgitAccessor).pushToTemporaryBranch(REPO_FILE, REPO_LOCATION,&quot;abc&quot;);
          System.out.println(&quot;test4&quot;);
          when(jgitAccessor.addAndCommitUntrackedChanges(eq(REPO_FILE),eq(TEST_DEVICE_NAME),eq(TEST_COMMIT_MSG), anyList())).thenReturn(eq(TEST_COMMIT_ID));
          System.out.println(&quot;test5&quot;);
          builder.addCommitAndPushUntrackedChanges(any(), anyList());
          System.out.println(&quot;test6&quot;);
      }
  
  
  
  
  </code></pre>