@Test
public void getJobById() throws Exception {

    server.enqueue(new MockResponse().setBody(file("jobs.json")));
    Response<Job, HttpError> response = resource.getJobById("some_id").execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response.body().id()).isEqualTo("61723_4cae01");
    assertThat(response.body().contact().jobCompany().name()).isEqualTo("Mr. Recruiter");
    assertThat(response.body().contact().user().id()).isEqualTo("3456gt_35345");
    assertThat(response.body().location().zipCode()).isEqualTo("20354");
}