It's hard to tell, but does this actually test the missing plugin situation? That keys off of Bad Request but this side effect raises just Exception, and I don't see any assertions that your translated error message is in the raised exception.