test case for reported bug #JENKINS-22011

Hi, 

Hi,I've experienced the same situation reported on bug: https://issues.jenkins-ci.org/browse/JENKINS-22011

I wrote a test case and apparently the issue is not in the plugin.