Test::Mock::Guard is mock test library using RAII.  This module is able
to change method behavior by each scope.

WWW: http://search.cpan.org/dist/Test-Mock-Guard/