title: JUnit Mockito returning LinkedList instead of ArrayList
body: <p>I have been tasked to figure out why this JUnit Test is failing.  What I have found is that instead of returning an ArrayList (like the getDeligationsForLoggedInUser is SUPPOSED to return, it returns a LinkedList for "userList".</p>
  
  <pre><code>@SuppressWarnings("unchecked")
  @Test
  public  void test_getDelegationsForLoggedInUser()
  {
      String userId="Abcd";
      List&lt;String&gt;  expectedUserList= new ArrayList&lt;String&gt;();
      expectedUserList.add("efghi");
      expectedUserList.add("jklmn");
      expectedUserList.add("opqrs");
  
      when(namedParameterJdbcTemplate.queryForObject(anyString(),anyMap(), any(RowMapper.class))).thenReturn(expectedUserList);
      List&lt;String&gt;  userList= workflowProcessDAOImpl.getDelegationsForLoggedInUser(userId);
      verify(namedParameterJdbcTemplate, times(1)).query(sqlCaptor.capture(), namedParameterMap.capture(), rowMapperCaptor.capture());
      assertThat(userList, is(expectedUserList));
      assertThat(sqlCaptor.getValue(), is(SQLConstantsSysConfigV1.getInstance().GET_USERIDS_FOR_DELEGATES));
  
  }
  </code></pre>
  
  <p>Does anyone have any idea why this is the case?</p>