Fixing JenkinsRule as HudsonTestCase was for optional dependencies in e11c01c.
(Implies reverting c4e3add as well, since we need resolvePluginFile to return null.)
(cherry picked from commit ea85489a0a8eafaf70917af8079a1839b264c1e7)