Could extract these 10 lines into a common method:
`Entity app = createAndStartApplication("test-entity-with-policy.yaml")`

Or two methods, with the second being `waitForApplicationTasks(app)`.

I expect that will be more important as we increase features / test coverage. At that point a super-class of `PoliciesYAMLTest` and `JavaWebAppsIntegrationTest` would be useful.