@Test
public void getPostsOfForum() throws Exception {

    server.enqueue(new MockResponse().setBody(file("groups/posts.json")));
    Response<List<Post>, HttpError> response = resource.getPostsOfForum("123245").execute();
    assertThat(response.body().size()).isEqualTo(10);
    Post firstPost = response.body().get(0);
    assertThat(firstPost.title()).isEqualTo("UL Test Tool User Group Meeting Munich");
    assertThat(firstPost.permissions().size()).isEqualTo(5);
    assertThat(firstPost.permissions().get(0)).isEqualTo(PostPermission.READ);
}