FYI, you can use `rule.createWebClient` to avoid the need for PowerMock (and `captureOutput`), if that seems clearer.