title: mockito does not mock in the actual method
body: <p>I am mocking AuthService in the test below and setting authService.checkAuthority(any(UserAuthority.class))as "true". It is actually getting set but in the actual method(authService.checkAuthority(UserAuthority.COMMENT_ACCESS))  it is getting the value as false. </p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @SpringApplicationConfiguration(ApplicationRunner.class)
  @WebAppConfiguration
  @Transactional
  public class TagsTest extends BaseWebTest {
      @Autowired
      private TagService tagService;
      @Autowired
      private TagRepository repository;
      UserDetailsDto currentUser;
      @Autowired
      protected AuthService authService;
      @Autowired
      protected StringRedisTemplate stringRedisTemplate;
      @Autowired
      protected FilterChainProxy filterChainProxy;
      @Autowired
      protected WebApplicationContext context;
      protected static MockMvc mvc;
  
      @Before
      @Override
      public void setUp() {
          MockitoAnnotations.initMocks(this);
          mvc = MockMvcBuilders.webAppContextSetup(context)
                  .dispatchOptions(true)
                  .addFilters(filterChainProxy)
                  .build();
          authService = Mockito.mock(AuthService.class);
          Mockito.reset(authService);
  
          when(authService.getCurrentUser()).then(i-&gt;(getCurrentUser()));            
          when(authService.checkAuthority(any(UserAuthority.class))).
                                          thenReturn(true);
  
          login(WORKFLOW_USER);
      }
  </code></pre>
  
  <p>Any help is appreciated. Thanks in advance !</p>