@Test
public void getForumsOfGroup() throws Exception {

    server.enqueue(new MockResponse().setBody(file("groups/forums.json")));
    Response<List<Forum>, HttpError> response = resource.getForumsOfGroup("123456").execute();
    assertThat(response.body().size()).isEqualTo(7);
    Forum firstForum = response.body().get(0);
    assertThat(firstForum).isNotNull();
    assertThat(firstForum.name()).isEqualTo("Vorstellungsrunde");
    ArrayList<ForumPermission> controlPermissions = new ArrayList<>(2);
    controlPermissions.add(ForumPermission.READ);
    controlPermissions.add(ForumPermission.POST);
    assertThat(firstForum.permissions()).isEqualTo(controlPermissions);
}