[JENKINS-25403] Replace 'stapler-class' and 'kind' to '$class' for testing purposes.