Make DropwizardAppRule extend ExternalResource

ExternalResource is a junit rule that standardizes the try-before-apply-finally-after pattern already used in the original code implementing TestRule.

By using the ExternalResource, everything works as before, but you can now use before() and after() hooks as extension points.
In my case, I would run flyway db initialization in my own rule extending DwAppRule by using super.before();.