Removing usage of deprecated Mockito annotation.