Though not critical, you could be more explicit about what we expect the error to say doing something like:

    .with(regexp_matches(/password.*required/))