@Test public void getUserLegalInformation() throws Exception { MockResponse mockResponse = new MockResponse().setBody("{\n" + " \"legal_information\": {\n" + " \"content\": \"Hello there.\"\n" + " }\n" + '}'); // Enqueue twice server.enqueue(mockResponse); server.enqueue(mockResponse); Response<String, HttpError> response1 = resource.getUserLegalInformation("test").execute(); assertThat(response1.body()).isEqualTo("Hello there."); Response<String, HttpError> response2 = resource.getOwnLegalInformation().execute(); assertThat(response2.body()).isEqualTo("Hello there."); } }