@Test
public void getOwnIdCard() throws Exception {

    server.enqueue(new MockResponse().setBody("{\n"
          + "  \"id_card\": {\n"
          + "    \"id\": \"test_id\"\n"
          + "  }\n"
          + '}'));
    Response<XingUser, HttpError> response = resource.getOwnIdCard().execute();
    // If no exception was thrown then the spec is build correctly.
    assertThat(response.body().id()).isEqualTo("test_id");
}