Fix failing tests

Fix tests which fail since upgrade of org.jenkins-ci.plugins:plugin to version 1.532.

The (unused) mockito dependency brings hamcrest-core 1.1, which breaks tests with jenkins-test-harness 1.532 (hamcrest 1.3). Removing it fixes most tests failures.

Fixing the few remaining failures is still in progress...