@Test
    public void insertsByHeapRules()
    {
        for (int i = 1; i < 30; i+=2)
            heap.insert(i);
        heap.insert(6);
        int[] ar = new int[heap.size()];
        for (int i = 0; i < heap.size(); i++)
            ar[i] = (i*2) + 1;
        ar[3] = 6;
        ar[7] = 7;
        ar[15] = 15;
        boolean test = true;
        for (int i = 0; i < heap.size(); i++)
            if (ar[i] != (int)heap.getArray()[i])    test = false;
        assertTrue(test);
    }