Fixed warning caused by MockitoAnnotations.Mock.
They've deprecated that package.