make throw expectation generic