@Test public void getAttachmentDownloadLink() throws Exception { server.enqueue(new MockResponse().setBody(file("messages/attachment_download.json"))); Response<String, HttpError> response = resource.getAttachmentDownloadLink("123", "4321_xyza").execute(); assertThat(response.body()).isEqualTo("https://swift.xingassets" + ".com/v1/AUTH_messages/xing-message-production/-a4eq2LSuUUPGbmbUSZCIaSDRrVx8Vc49yYfvXR4mZw?temp_url_sig" + "=873add36a595df38097a2a9de56da1a4ff67cdac&temp_url_expires=1418399892"); }