Jenkins pipeline libraryresource. step5 of the tutorial describes how to test the pipeline.