public void testGetImage() throws Exception {
MockWebServer server = mockWebServer();
String[] imageJsons = new String[] { "/image1.json", "/image2.json", "/image3.json" };
for (String imageJson : imageJsons) {
server.enqueue(new MockResponse().setBody(payloadFromResource(imageJson)));
}
DigitalOceanApi api = api(server.getUrl("/"));
ImageApi imageApi = api.getImageApi();