@Test
public void getPendingContactRequests() throws Exception {

    server.enqueue(new MockResponse().setBody("{\n"
          + "  \"contact_requests\": [\n"
          + "    {\n"
          + "      \"sender_id\": \"19828488_2f3282\",\n"
          + "      \"recipient_id\": \"8957208_181cf4\"\n"
          + "    },\n"
          + "    {\n"
          + "      \"sender_id\": \"19828488_2f3282\",\n"
          + "      \"recipient_id\": \"20195666_868fe8\"\n"
          + "    },\n"
          + "    {\n"
          + "      \"sender_id\": \"19828488_2f3282\",\n"
          + "      \"recipient_id\": \"12022726_a0415b\"\n"
          + "    }\n"
          + "  ]\n"
          + '}'));
    Response<List<PendingContactRequest>, HttpError> response = resource.getPendingContactRequests().execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response.body()).containsExactly(
          new PendingContactRequest("19828488_2f3282", "8957208_181cf4"),
            new PendingContactRequest("19828488_2f3282", "20195666_868fe8"),
            new PendingContactRequest("19828488_2f3282", "12022726_a0415b"));
}