eval { my $hashref = $foo->getDetails( PARAM_ONE => 1234); }; like $@, /missing PARAM_TWO/, "detect missing param 2";