@Test
public void addCompany() throws Exception {

    server.enqueue(new MockResponse().setResponseCode(201).setBody(BODY_COMPANY));
    Response<Company, HttpError> response = resource.addCompany("Name", "Title", FormOfEmployment
          .FULL_TIME_EMPLOYEE).execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response.body()).isNotNull();
    assertThat(response.body().id()).isEqualTo("23_abcdef");
}