[JENKINS-18014] unit test to reproduce issue