@Test
public void updateSchool() throws Exception {

    server.enqueue(new MockResponse().setBody("{\n"
          + "  \"school\": {\n"
          + "    \"id\": \"42\",\n"
          + "    \"name\": \"University of Hamburg\",\n"
          + "    \"subject\": null,\n"
          + "    \"degree\": null,\n"
          + "    \"begin_date\": null,\n"
          + "    \"end_date\": null,\n"
          + "    \"notes\": null\n"
          + "  }\n"
          + '}'));
    Response<School, HttpError> response = resource.updateSchool("42").execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response.body().id()).isEqualTo("42");
}