Agree to reuse as much existing code, helper methods in the rest of the project to avoid duplication.  There is another comment on this PR to make the integration tests a sub-project so that we can introduce dependencies on xd-rest-client etc.  I suggest we merge this PR after a minimal round of suggestions and then return to it in subsequent stories.