@Test
public void buildFromOrderedList() throws Exception {

    // create an ordered, flat list of the forums in sourceTree
    List<Forum> sourceList = new ArrayList<>();
    Collections.addAll(sourceList, bookmarks, discussion, shsc, games, cobol, projectlog);
    // build a ForumStructure from the flat list, and get the tree it creates
    ForumStructure forumStructure = ForumStructure.buildFromOrderedList(sourceList, TOP_LEVEL_ID);
    List<Forum> builtTree = forumStructure.getAsList().formatAs(FULL_TREE).build();
    // the built tree should match sourceTree
    assertThat(builtTree, is(aForumTreeMatching(sourceTree)));
}