@Test
public void createMediaPreview() throws Exception {

    server.enqueue(new MockResponse().setBody(file("groups/media_preview.json")));
    Response<MediaPreview, HttpError> response = resource.createMediaPreview("https://dev.xing.com").execute();
    assertThat(response.body()).isNotNull();
    assertThat(response.body().title()).isEqualTo("XING Developer");
    assertThat(response.body().description())
          .isEqualTo("The XING API helps you connect your app with over 14 million users.");
    assertThat(response.body().imageUrl()).isNullOrEmpty();
}