Sample-Plack-Test is a project mainly written in Perl, it's free.
sample code
Sample Code for http://d.hatena.ne.jp/okamuuu/20110601/1306934636