Add a test using JenkinsRule. This does not reproduce JENKINS-17774.