generateTestRejections

Generates source code of rejections in the test scope.