### Question:
ForumStructureItem { public boolean isSection() { return item != null && item instanceof PoulpeSection; } ForumStructureItem();  ForumStructureItem(@Nullable Entity item); Entity getItem(); boolean isBranch(); boolean isSection(); boolean isPersisted(); PoulpeBranch getBranchItem(); PoulpeSection getSectionItem(); ForumStructureItem prepareBranchItemForEditing(boolean createNew); ForumStructureItem prepareSectionItemForEditing(boolean createNew); T getItem(@Nonnull Class<T> itemClass); @Override String toString(); String getDraggableId(); String getDroppableId(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testIsSection() throws Exception { ForumStructureItem item = new ForumStructureItem(new PoulpeSection()); assertTrue(item.isSection()); }
@Test public void testIsSection_whenNull() throws Exception { assertFalse(new ForumStructureItem(null).isSection()); }
@Test public void testIsSection_whenBranch() throws Exception { ForumStructureItem item = new ForumStructureItem(new PoulpeBranch()); assertFalse(item.isSection()); }