It is easy to just copy the String from the `error` method and format in the element. I think it's more flexible, if you want to change a message, or refactor tests and switch out a class name. Or if you want to provide static package protected Strings for the error messages, and reuse those in the tests, so the tests are automatically up-to-date.