### Question:
ForumStructureItem { public ForumStructureItem prepareBranchItemForEditing(boolean createNew) { return createNew ? new ForumStructureItem(new PoulpeBranch()) : this; } 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 testPrepareBranchItemForEditing_whenEditingExisting() throws Exception { ForumStructureItem item = new ForumStructureItem(); ForumStructureItem preparedItem = item.prepareBranchItemForEditing(false); assertSame(preparedItem, item); }
@Test public void testPrepareSectionItemForEditing_whenEditingExisting() throws Exception { ForumStructureItem item = new ForumStructureItem(null); ForumStructureItem preparedItem = item.prepareBranchItemForEditing(false); assertSame(preparedItem, item); }