@Test
public void getOwnRecommendations() throws Exception {

    server.enqueue(new MockResponse().setBody("{\n"
          + "  \"user_recommendations\": {\n"
          + "    \"total\": 2,\n"
          + "    \"recommendations\": [\n"
          + "      {\n"
          + "        \"user\": {\n"
          + "          \"id\": \"123123_abcdef\",\n"
          + "          \"display_name\": \"Marianne Musterfrau\",\n"
          + "          \"gender\": \"f\"\n"
          + "        }\n"
          + "      },\n"
          + "      {\n"
          + "        \"user\": {\n"
          + "          \"id\": \"111111_cccccc\",\n"
          + "          \"display_name\": \"Max Musterdude\",\n"
          + "          \"gender\": \"m\"\n"
          + "        }\n"
          + "      }\n"
          + "    ]\n"
          + "  }\n"
          + '}'));
    Response<List<XingUser>, HttpError> response = resource.getOwnRecommendations().execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response.isSuccessful()).isTrue();
    assertThat(response.body()).containsExactly(
          new XingUser("123123_abcdef")
                .displayName("Marianne Musterfrau")
                .gender(Gender.FEMALE),
          new XingUser("111111_cccccc")
                .displayName("Max Musterdude")
                .gender(Gender.MALE)
    );
}