assertEquals("Name Unexpected", "SectionName5", site.getAssociatedSections(0).getName()); assertEquals("Name Unexpected", "SectionName6", site.getAssociatedSections(1).getName());
assertEquals("Name Unexpected", "SectionName5", site.getAssociatedSections().get(0).getName()); assertEquals("Name Unexpected", "SectionName6", site.getAssociatedSections().get(1).getName());
    public void testDelete(){                section3.delete();                                   // Test: Remove Items        assertEquals("Size Unexpected", 0, section3.getAssociatedItemsCount());                      assertNull("Section Unexpected", item.getSection());        assertNull("Section Unexpected", item2.getSection());                assertNull("Site Unexpected", section3.getSite());        assertNull("Superior Section Unexpected", section3.getSuperiorSection());                        assertEquals("Size Unexpected", 2, section.getAssociatedSectionsCount());        assertEquals("Size Unexpected", 5, site.getAssociatedSectionsCount());                assertEquals("Name Unexpected", "SectionName2", section.getAssociatedSections(0).getName());        assertEquals("Order Unexpected", 0, section.getAssociatedSections(0).getSectionOrder().intValue());                assertEquals("Name Unexpected", "SectionName4", section.getAssociatedSections(1).getName());        assertEquals("Order Unexpected", 1, section.getAssociatedSections(1).getSectionOrder().intValue());                        assertEquals("Order Unexpected", 0, site.getAssociatedSections(0).getSectionOrder().intValue());        assertEquals("Order Unexpected", 1, site.getAssociatedSections(3).getSectionOrder().intValue());        assertEquals("Order Unexpected", 2, site.getAssociatedSections(4).getSectionOrder().intValue());                       section.delete();                assertEquals("Size Unexpected", 2, site.getAssociatedSectionsCount());        assertEquals("Size Unexpected", 0, section.getAssociatedSectionsCount());                assertEquals("Name Unexpected", "SectionName5", site.getAssociatedSections(0).getName());        assertEquals("Name Unexpected", "SectionName6", site.getAssociatedSections(1).getName());                assertNull("Superior Section Unexpected", section2.getSuperiorSection());        assertNull("Superior Section Unexpected", section4.getSuperiorSection());                assertNull("Site Unexpected", section.getSite());        assertNull("Site Unexpected", section2.getSite());        assertNull("Site Unexpected", section4.getSite());            }