@Test
public void addSchoolToOwnProfile() throws Exception {

    MockResponse mockResponse = 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"
          + '}');
    server.enqueue(mockResponse);
    server.enqueue(mockResponse);
    Response<School, HttpError> response1 = resource.addSchool("University of Hamburg").execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response1.body().id()).isEqualTo("42");
    // This would require a name, but the server prevents that in the real world.
    Response<School, HttpError> response2 = resource.addSchool(new School()).execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response2.body().id()).isEqualTo("42");
}