@Test
public void getOwnProfile() throws Exception {

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