[JENKINS-25501] Added test case verifying that tokens are correctly produced and consumed.