Refactoring assertions in the acceptance tests