[fixed JENKINS-18278] Added solution and test