@Test
public void getTranslatedIndustries() throws Exception {

    server.enqueue(new MockResponse().setBody(file("industries.json")));
    Response<Map<Language, List<Industry>>, HttpError> response = resource.getTranslatedIndustries(null).execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response.isSuccessful()).isTrue();
    // Randomly check the body.
    List<Industry> industries = response.body().get(Language.EN);
    assertThat(industries.size()).isEqualTo(23);
    assertThat(industries.get(5).id()).isEqualTo(190000);
    assertThat(industries.get(5).segments().size()).isEqualTo(6);
}