JENKINS-20388 added unit test