@Test
public void getProfilePictureUploadProgress() throws Exception {

    server.enqueue(new MockResponse().setBody("{\n"
          + "  \"progress\": {\n"
          + "    \"status\": \"IN_PROGRESS\",\n"
          + "    \"percentage\": 80\n"
          + "  }\n"
          + '}'));
    Response<UploadProgress, HttpError> response = resource.getPictureUploadProgress().execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response.body().status()).isEqualTo(Status.IN_PROGRESS);
    assertThat(response.body().percentage()).isEqualTo(80);
}