Unit test for JENKINS-16630