[JENKINS-24611] Added testcase.