Wrote a test to reproduce Jenkins-17774.
Wrote how to reproduce Jenkins-17774.