section.insertItem("ItemName1", "ItemInformation1", true, 0); testInsertItemInformation(1, "ItemName1", "ItemInformation1", true, 0, 0);
section.insertItem("ItemName1", "ItemInformation1", 0); testInsertItemInformation(1, "ItemName1", "ItemInformation1", 0, 0);
    public void testInsertItem() {        try {            section.insertItem(null, null, null, null);            fail("Expected NullPointerException");                    } catch (NullPointerException e) {            assertEquals("Size Unexpected", 0, section.getAssociatedItemsCount());        } catch (DomainException e) {            fail("Expected NullPointerException");        }                try {            section.insertItem("ItemName1", "ItemInformation1", true, 0);                      testInsertItemInformation(1, "ItemName1", "ItemInformation1", true, 0, 0);                            } catch (DomainException e) {            assertEquals("Size Unexpected", 0, section.getAssociatedItemsCount());        }                  //Test: insert an item with the same name of an existing one         try {            section.insertItem("ItemName1", "ItemInformation111111", false, 0);            fail("Expected DomainException");                  } catch (DomainException e) {                        testInsertItemInformation(1, "ItemName1", "ItemInformation1", true, 0, 0);                    }                try {            section.insertItem("ItemName2", "ItemInformation2", false, 1);                       testInsertItemInformation(2, "ItemName2", "ItemInformation2", false, 1, 0);                           } catch (DomainException e) {            assertEquals("Size Unexpected", 1, section.getAssociatedItemsCount());        }                              try {            section.insertItem("ItemName3", "ItemInformation3", true, 1);            testInsertItemInformation(3, "ItemName3", "ItemInformation3", true, 1, 0);                                   } catch (DomainException e) {            assertEquals("Size Unexpected", 2, section.getAssociatedItemsCount());        }                try {            section.insertItem("ItemName4", "ItemInformation4", false, 2);                        testInsertItemInformation(4, "ItemName4", "ItemInformation4", false, 2, 0);                            } catch (DomainException e) {            assertEquals("Size Unexpected", 3, section.getAssociatedItemsCount());        }                        // Test: Organize Existing Items Order        assertEquals("Order Unexpected", 0, section.getAssociatedItems().get(3).getItemOrder().intValue());        assertEquals("Order Unexpected", 3, section.getAssociatedItems().get(2).getItemOrder().intValue());        assertEquals("Order Unexpected", 1, section.getAssociatedItems().get(1).getItemOrder().intValue());        assertEquals("Order Unexpected", 2, section.getAssociatedItems().get(0).getItemOrder().intValue());    }  