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