import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * Führt eine Reihe von Tests mit einem Stack aus
 *
 * @author  Rainer Helfrich
 * @version Oktober 2020
 */
public abstract class StackTester
{
    /**
     * Der zu testende Stack
     */
    protected Stack<Integer> theStack;

    @Test
    public void test01()
    {
        Integer tmp;
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(8);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        theStack.push(7);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(7,theStack.top().intValue());
        theStack.push(7);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(7,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(7,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(7,theStack.top().intValue());
        theStack.push(9);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(9,theStack.top().intValue());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        theStack.push(8);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(8,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        theStack.push(5);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(5,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(8);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        theStack.push(2);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(2,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(2,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(8,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(5,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(9,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(7,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(8,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(5);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(5,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(5,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(5);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(5,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(5,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        theStack.push(8);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        theStack.push(8);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        theStack.push(7);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(7,theStack.top().intValue());
        theStack.push(2);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(2,theStack.top().intValue());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(2,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(7,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(8,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(8,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        theStack.push(1);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(1,theStack.top().intValue());
        theStack.push(8);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(8,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(1,theStack.top().intValue());
        theStack.push(5);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(5,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(5,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(1,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(3);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(3,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        theStack.push(9);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(9,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(9,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(3,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        theStack.push(1);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(1,theStack.top().intValue());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        theStack.push(3);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(3,theStack.top().intValue());
        theStack.push(2);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(2,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        theStack.push(3);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(3,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(3,theStack.top().intValue());
        theStack.push(7);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(7,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        theStack.push(1);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(1,theStack.top().intValue());
        theStack.push(8);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        theStack.push(2);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(2,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(2,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(8,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(1,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(7,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(3,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(2,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(3,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(1,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        theStack.push(5);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(5,theStack.top().intValue());
        theStack.push(1);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(1,theStack.top().intValue());
        theStack.push(3);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(3,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(3,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(1,theStack.top().intValue());
        theStack.push(2);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(2,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        theStack.push(7);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(7,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(7,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(2,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(1,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(5,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(9);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(9,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(8);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(8,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(9,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(9);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(9,theStack.top().intValue());
        theStack.push(1);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(1,theStack.top().intValue());
        theStack.push(1);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(1,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(1,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(1,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(7);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(7,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(7,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(1,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(1,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(9,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        theStack.push(7);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(7,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
    }

    @Test
    public void test02()
    {
        Integer tmp;
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(82);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(82,theStack.top().intValue());
        theStack.push(84);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(84,theStack.top().intValue());
        theStack.push(57);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(57,theStack.top().intValue());
        theStack.push(98);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(98,theStack.top().intValue());
        theStack.push(74);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(74,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(74,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(98,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(57,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(84,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(82,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(90);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(90,theStack.top().intValue());
        theStack.push(5);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(5,theStack.top().intValue());
        theStack.push(23);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(23,theStack.top().intValue());
        theStack.push(81);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(81,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(81,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(23,theStack.top().intValue());
        theStack.push(51);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(51,theStack.top().intValue());
        theStack.push(46);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(46,theStack.top().intValue());
        theStack.push(35);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(35,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(35,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(46,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(51,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(23,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(5,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(90,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(51);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(51,theStack.top().intValue());
        theStack.push(2);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(2,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(2,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(51,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(5);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(5,theStack.top().intValue());
        theStack.push(2);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(2,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(2,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(5,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(94);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(94,theStack.top().intValue());
        theStack.push(20);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(20,theStack.top().intValue());
        theStack.push(58);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(58,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(33);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(33,theStack.top().intValue());
        theStack.push(91);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(91,theStack.top().intValue());
        theStack.push(68);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(68,theStack.top().intValue());
        theStack.push(41);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(41,theStack.top().intValue());
        theStack.push(41);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(41,theStack.top().intValue());
        theStack.push(62);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(62,theStack.top().intValue());
        theStack.push(39);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(39,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(33);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(33,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(33,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(64);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(64,theStack.top().intValue());
        theStack.push(7);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(7,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(7,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(64,theStack.top().intValue());
        theStack.push(51);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(51,theStack.top().intValue());
        theStack.push(38);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(38,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(38,theStack.top().intValue());
        theStack.push(12);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(12,theStack.top().intValue());
        theStack.push(46);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(46,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(46,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(12,theStack.top().intValue());
        theStack.push(15);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(15,theStack.top().intValue());
        theStack.push(98);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(98,theStack.top().intValue());
        theStack.push(65);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(65,theStack.top().intValue());
        theStack.push(92);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(92,theStack.top().intValue());
        theStack.push(40);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(40,theStack.top().intValue());
        theStack.push(40);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(40,theStack.top().intValue());
        theStack.push(30);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(30,theStack.top().intValue());
        theStack.push(42);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(42,theStack.top().intValue());
        theStack.push(12);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(12,theStack.top().intValue());
        theStack.push(81);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(81,theStack.top().intValue());
        theStack.push(55);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(55,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(55,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(81,theStack.top().intValue());
        theStack.push(21);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(21,theStack.top().intValue());
        theStack.push(17);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(17,theStack.top().intValue());
        theStack.push(62);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(62,theStack.top().intValue());
        theStack.push(21);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(21,theStack.top().intValue());
        theStack.push(59);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(59,theStack.top().intValue());
        theStack.push(18);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(18,theStack.top().intValue());
        theStack.push(7);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(7,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(7,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(18,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(59,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(21,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(62,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(17,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(21,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(81,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(12,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(42,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(30,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(40,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(40,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(92,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(65,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(98,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(15,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(12,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(38,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(51,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(64,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(39,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(62,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(41,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(41,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(68,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(91,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(33,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(58,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(20,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(94,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(50);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(50,theStack.top().intValue());
        theStack.push(27);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(27,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(27,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(50,theStack.top().intValue());
        theStack.push(89);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(89,theStack.top().intValue());
        theStack.push(82);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(82,theStack.top().intValue());
        theStack.push(30);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(30,theStack.top().intValue());
        theStack.push(24);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(24,theStack.top().intValue());
        theStack.push(62);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(62,theStack.top().intValue());
        theStack.push(24);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(24,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(24,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(62,theStack.top().intValue());
        theStack.push(32);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(32,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(32,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(62,theStack.top().intValue());
        theStack.push(57);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(57,theStack.top().intValue());
        theStack.push(39);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(39,theStack.top().intValue());
        theStack.push(90);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(90,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(90,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(39,theStack.top().intValue());
        theStack.push(82);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(82,theStack.top().intValue());
        theStack.push(42);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(42,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(42,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(82,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(39,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(57,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(62,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(24,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(30,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(82,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(89,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(50,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(81);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(81,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(81,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(30);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(30,theStack.top().intValue());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        theStack.push(93);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(93,theStack.top().intValue());
        theStack.push(64);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(64,theStack.top().intValue());
        theStack.push(40);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(40,theStack.top().intValue());
        theStack.push(85);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(85,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(85,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(40,theStack.top().intValue());
        theStack.push(24);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(24,theStack.top().intValue());
        theStack.push(91);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(91,theStack.top().intValue());
    }

    @Test
    public void test03()
    {
        Integer tmp;
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(94);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(94,theStack.top().intValue());
        theStack.push(424);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(424,theStack.top().intValue());
        theStack.push(550);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(550,theStack.top().intValue());
        theStack.push(301);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(301,theStack.top().intValue());
        theStack.push(57);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(57,theStack.top().intValue());
        theStack.push(188);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(188,theStack.top().intValue());
        theStack.push(784);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(784,theStack.top().intValue());
        theStack.push(235);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(235,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(235,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(784,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(188,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(57,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(301,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(550,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(424,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(94,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(96);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(96,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(96,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(807);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(807,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(807,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(0);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(0,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(0,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(801);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(801,theStack.top().intValue());
        theStack.push(683);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(683,theStack.top().intValue());
        theStack.push(819);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(819,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(819,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(683,theStack.top().intValue());
        theStack.push(516);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(516,theStack.top().intValue());
        theStack.push(940);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(940,theStack.top().intValue());
        theStack.push(757);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(757,theStack.top().intValue());
        theStack.push(828);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(828,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(828,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(757,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(940,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(516,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(683,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(801,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(737);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(737,theStack.top().intValue());
        theStack.push(883);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(883,theStack.top().intValue());
        theStack.push(264);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(264,theStack.top().intValue());
        theStack.push(165);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(165,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(165,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(264,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(883,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(737,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(482);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(482,theStack.top().intValue());
        theStack.push(128);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(128,theStack.top().intValue());
        theStack.push(665);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(665,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(665,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(128,theStack.top().intValue());
        theStack.push(747);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(747,theStack.top().intValue());
        theStack.push(348);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(348,theStack.top().intValue());
        theStack.push(182);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(182,theStack.top().intValue());
        theStack.push(242);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(242,theStack.top().intValue());
        theStack.push(805);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(805,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(805,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(242,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(182,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(348,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(747,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(128,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(482,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(202);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(202,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(202,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(384);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(384,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(384,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(870);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(870,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(870,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(827);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(827,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(827,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(763);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(763,theStack.top().intValue());
        theStack.push(794);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(794,theStack.top().intValue());
        theStack.push(865);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(865,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(865,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(794,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(763,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(135);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(135,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(135,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(971);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(971,theStack.top().intValue());
        theStack.push(769);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(769,theStack.top().intValue());
        theStack.push(561);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(561,theStack.top().intValue());
        theStack.push(562);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(562,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(562,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(561,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(561,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(769,theStack.top().intValue());
        theStack.push(244);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(244,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(244,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(769,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(769,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(971,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(23);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(23,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(23,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(466);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(466,theStack.top().intValue());
        theStack.push(756);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(756,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(756,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(466,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(26);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(26,theStack.top().intValue());
        theStack.push(446);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(446,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(446,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(26,theStack.top().intValue());
        theStack.push(979);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(979,theStack.top().intValue());
        theStack.push(710);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(710,theStack.top().intValue());
        theStack.push(113);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(113,theStack.top().intValue());
        theStack.push(112);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(112,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(112,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(113,theStack.top().intValue());
        theStack.push(755);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(755,theStack.top().intValue());
        theStack.push(430);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(430,theStack.top().intValue());
        theStack.push(848);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(848,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(848,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(430,theStack.top().intValue());
        theStack.push(627);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(627,theStack.top().intValue());
        theStack.push(984);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(984,theStack.top().intValue());
        theStack.push(980);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(980,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(980,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(984,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(627,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(430,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(755,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(113,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(710,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(979,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(26,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(952);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(952,theStack.top().intValue());
        theStack.push(403);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(403,theStack.top().intValue());
        theStack.push(522);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(522,theStack.top().intValue());
        theStack.push(765);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(765,theStack.top().intValue());
        theStack.push(251);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(251,theStack.top().intValue());
        theStack.push(313);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(313,theStack.top().intValue());
        theStack.push(481);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(481,theStack.top().intValue());
        theStack.push(875);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(875,theStack.top().intValue());
        theStack.push(672);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(672,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(672,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(875,theStack.top().intValue());
        theStack.push(214);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(214,theStack.top().intValue());
        theStack.push(480);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(480,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(480,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(214,theStack.top().intValue());
    }

    @Test
    public void test04()
    {
        Integer tmp;
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(757);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(757,theStack.top().intValue());
        theStack.push(190);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(190,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(190,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(757,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(805);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(805,theStack.top().intValue());
        theStack.push(975);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(975,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(975,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(805,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(859);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(859,theStack.top().intValue());
        theStack.push(84);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(84,theStack.top().intValue());
        theStack.push(790);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(790,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(790,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(84,theStack.top().intValue());
        theStack.push(464);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(464,theStack.top().intValue());
        theStack.push(127);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(127,theStack.top().intValue());
        theStack.push(800);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(800,theStack.top().intValue());
        theStack.push(108);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(108,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(108,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(800,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(127,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(464,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(84,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(859,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(586);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(586,theStack.top().intValue());
        theStack.push(463);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(463,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(463,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(586,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(586,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(515);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(515,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(515,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(555);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(555,theStack.top().intValue());
        theStack.push(278);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(278,theStack.top().intValue());
        theStack.push(729);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(729,theStack.top().intValue());
        theStack.push(36);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(36,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(36,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(729,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(278,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(555,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(81);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(81,theStack.top().intValue());
        theStack.push(176);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(176,theStack.top().intValue());
        theStack.push(124);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(124,theStack.top().intValue());
        theStack.push(533);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(533,theStack.top().intValue());
        theStack.push(361);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(361,theStack.top().intValue());
        theStack.push(868);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(868,theStack.top().intValue());
        theStack.push(296);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(296,theStack.top().intValue());
        theStack.push(914);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(914,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(914,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(296,theStack.top().intValue());
        theStack.push(683);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(683,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(683,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(296,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(296,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(868,theStack.top().intValue());
        theStack.push(576);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(576,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(576,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(868,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(868,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(361,theStack.top().intValue());
        theStack.push(63);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(63,theStack.top().intValue());
        theStack.push(514);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(514,theStack.top().intValue());
        theStack.push(162);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(162,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(162,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(514,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(514,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(63,theStack.top().intValue());
        theStack.push(431);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(431,theStack.top().intValue());
        theStack.push(941);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(941,theStack.top().intValue());
        theStack.push(471);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(471,theStack.top().intValue());
        theStack.push(712);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(712,theStack.top().intValue());
        theStack.push(571);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(571,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(571,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(712,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(712,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(471,theStack.top().intValue());
        theStack.push(113);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(113,theStack.top().intValue());
        theStack.push(143);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(143,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(143,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(113,theStack.top().intValue());
        theStack.push(803);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(803,theStack.top().intValue());
        theStack.push(390);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(390,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(390,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(803,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(113,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(471,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(941,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(431,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(63,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(361,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(533,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(124,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(176,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(81,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(48);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(48,theStack.top().intValue());
        theStack.push(759);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(759,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(759,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(48,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(48,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(385);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(385,theStack.top().intValue());
        theStack.push(193);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(193,theStack.top().intValue());
        theStack.push(57);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(57,theStack.top().intValue());
        theStack.push(183);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(183,theStack.top().intValue());
        theStack.push(476);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(476,theStack.top().intValue());
        theStack.push(897);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(897,theStack.top().intValue());
        theStack.push(936);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(936,theStack.top().intValue());
        theStack.push(593);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(593,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(593,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(936,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(936,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(897,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(476,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(183,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(57,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(193,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(385,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(685);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(685,theStack.top().intValue());
        theStack.push(952);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(952,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(952,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(685,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(685,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(257);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(257,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(257,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(297);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(297,theStack.top().intValue());
        theStack.push(180);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(180,theStack.top().intValue());
        theStack.push(409);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(409,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(409,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(180,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(180,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(297,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(809);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(809,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(809,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(845);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(845,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(845,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(481);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(481,theStack.top().intValue());
        theStack.push(697);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(697,theStack.top().intValue());
        theStack.push(654);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(654,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(654,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(697,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(697,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(481,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(62);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(62,theStack.top().intValue());
        theStack.push(980);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(980,theStack.top().intValue());
        theStack.push(466);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(466,theStack.top().intValue());
        theStack.push(922);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(922,theStack.top().intValue());
        theStack.push(445);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(445,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(445,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(922,theStack.top().intValue());
    }

    @Test
    public void test05()
    {
        Integer tmp;
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(98);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(98,theStack.top().intValue());
        theStack.push(30);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(30,theStack.top().intValue());
        theStack.push(963);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(963,theStack.top().intValue());
        theStack.push(454);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(454,theStack.top().intValue());
        theStack.push(77);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(77,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(77,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(454,theStack.top().intValue());
        theStack.push(24);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(24,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(24,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(454,theStack.top().intValue());
        theStack.push(622);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(622,theStack.top().intValue());
        theStack.push(748);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(748,theStack.top().intValue());
        theStack.push(584);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(584,theStack.top().intValue());
        theStack.push(528);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(528,theStack.top().intValue());
        theStack.push(547);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(547,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(547,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(528,theStack.top().intValue());
        theStack.push(440);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(440,theStack.top().intValue());
        theStack.push(485);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(485,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(485,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(440,theStack.top().intValue());
        theStack.push(549);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(549,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(549,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(440,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(528,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(584,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(748,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(622,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(454,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(963,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(30,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(98,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(845);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(845,theStack.top().intValue());
        theStack.push(834);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(834,theStack.top().intValue());
        theStack.push(920);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(920,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(920,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(834,theStack.top().intValue());
        theStack.push(334);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(334,theStack.top().intValue());
        theStack.push(528);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(528,theStack.top().intValue());
        theStack.push(44);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(44,theStack.top().intValue());
        theStack.push(778);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(778,theStack.top().intValue());
        theStack.push(499);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(499,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(499,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(778,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(44,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(528,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(334,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(834,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(845,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(657);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(657,theStack.top().intValue());
        theStack.push(588);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(588,theStack.top().intValue());
        theStack.push(82);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(82,theStack.top().intValue());
        theStack.push(213);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(213,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(213,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(82,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(82,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(588,theStack.top().intValue());
        theStack.push(78);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(78,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(78,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(588,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(588,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(657,theStack.top().intValue());
        theStack.push(614);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(614,theStack.top().intValue());
        theStack.push(3);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(3,theStack.top().intValue());
        theStack.push(848);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(848,theStack.top().intValue());
        theStack.push(691);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(691,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(691,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(848,theStack.top().intValue());
        theStack.push(468);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(468,theStack.top().intValue());
        theStack.push(393);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(393,theStack.top().intValue());
        theStack.push(294);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(294,theStack.top().intValue());
        theStack.push(329);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(329,theStack.top().intValue());
        theStack.push(8);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(8,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(329,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(294,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(393,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(468,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(848,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(3,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(614,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(657,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(665);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(665,theStack.top().intValue());
        theStack.push(771);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(771,theStack.top().intValue());
        theStack.push(442);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(442,theStack.top().intValue());
        theStack.push(405);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(405,theStack.top().intValue());
        theStack.push(930);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(930,theStack.top().intValue());
        theStack.push(513);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(513,theStack.top().intValue());
        theStack.push(289);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(289,theStack.top().intValue());
        theStack.push(455);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(455,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(455,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(289,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(513,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(930,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(405,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(442,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(771,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(665,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(791);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(791,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(791,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(362);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(362,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(362,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(720);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(720,theStack.top().intValue());
        theStack.push(328);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(328,theStack.top().intValue());
        theStack.push(454);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(454,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(454,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(328,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(720,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(626);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(626,theStack.top().intValue());
        theStack.push(878);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(878,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(878,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(626,theStack.top().intValue());
        theStack.push(220);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(220,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(220,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(626,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(626,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(959);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(959,theStack.top().intValue());
        theStack.push(907);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(907,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(907,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(959,theStack.top().intValue());
        theStack.push(942);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(942,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(942,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(959,theStack.top().intValue());
        theStack.push(971);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(971,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(971,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(959,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(959,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(781);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(781,theStack.top().intValue());
        theStack.push(288);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(288,theStack.top().intValue());
        theStack.push(677);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(677,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(677,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(288,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(288,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(781,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(295);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(295,theStack.top().intValue());
        theStack.push(684);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(684,theStack.top().intValue());
        theStack.push(976);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(976,theStack.top().intValue());
        theStack.push(570);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(570,theStack.top().intValue());
        theStack.push(873);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(873,theStack.top().intValue());
        theStack.push(965);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(965,theStack.top().intValue());
        theStack.push(241);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(241,theStack.top().intValue());
        theStack.push(573);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(573,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(573,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(241,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(241,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(965,theStack.top().intValue());
        theStack.push(645);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(645,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(645,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(965,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(873,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(570,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(976,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(684,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(295,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(109);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(109,theStack.top().intValue());
    }

    @Test
    public void test06()
    {
        Integer tmp;
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(781);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(781,theStack.top().intValue());
        theStack.push(122);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(122,theStack.top().intValue());
        theStack.push(687);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(687,theStack.top().intValue());
        theStack.push(131);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(131,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(131,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(687,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(122,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(781,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(677);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(677,theStack.top().intValue());
        theStack.push(537);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(537,theStack.top().intValue());
        theStack.push(585);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(585,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(585,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(537,theStack.top().intValue());
        theStack.push(922);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(922,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(922,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(537,theStack.top().intValue());
        theStack.push(308);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(308,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(308,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(537,theStack.top().intValue());
        theStack.push(32);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(32,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(32,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(537,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(677,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(359);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(359,theStack.top().intValue());
        theStack.push(19);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(19,theStack.top().intValue());
        theStack.push(251);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(251,theStack.top().intValue());
        theStack.push(564);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(564,theStack.top().intValue());
        theStack.push(996);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(996,theStack.top().intValue());
        theStack.push(317);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(317,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(317,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(996,theStack.top().intValue());
        theStack.push(471);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(471,theStack.top().intValue());
        theStack.push(399);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(399,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(399,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(471,theStack.top().intValue());
        theStack.push(999);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(999,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(999,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(471,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(996,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(564,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(251,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(19,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(359,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(587);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(587,theStack.top().intValue());
        theStack.push(428);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(428,theStack.top().intValue());
        theStack.push(762);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(762,theStack.top().intValue());
        theStack.push(836);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(836,theStack.top().intValue());
        theStack.push(379);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(379,theStack.top().intValue());
        theStack.push(408);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(408,theStack.top().intValue());
        theStack.push(156);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(156,theStack.top().intValue());
        theStack.push(451);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(451,theStack.top().intValue());
        theStack.push(741);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(741,theStack.top().intValue());
        theStack.push(520);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(520,theStack.top().intValue());
        theStack.push(315);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(315,theStack.top().intValue());
        theStack.push(309);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(309,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(309,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(315,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(315,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(520,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(741,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(451,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(156,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(408,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(379,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(836,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(762,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(428,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(587,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(546);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(546,theStack.top().intValue());
        theStack.push(836);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(836,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(836,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(546,theStack.top().intValue());
        theStack.push(837);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(837,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(837,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(546,theStack.top().intValue());
        theStack.push(939);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(939,theStack.top().intValue());
        theStack.push(214);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(214,theStack.top().intValue());
        theStack.push(284);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(284,theStack.top().intValue());
        theStack.push(994);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(994,theStack.top().intValue());
        theStack.push(132);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(132,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(132,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(994,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(284,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(214,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(939,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(546,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(339);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(339,theStack.top().intValue());
        theStack.push(312);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(312,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(312,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(339,theStack.top().intValue());
        theStack.push(663);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(663,theStack.top().intValue());
        theStack.push(800);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(800,theStack.top().intValue());
        theStack.push(36);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(36,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(36,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(800,theStack.top().intValue());
        theStack.push(565);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(565,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(565,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(800,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(663,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(339,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(65);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(65,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(65,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(653);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(653,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(653,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(496);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(496,theStack.top().intValue());
        theStack.push(738);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(738,theStack.top().intValue());
        theStack.push(385);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(385,theStack.top().intValue());
        theStack.push(792);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(792,theStack.top().intValue());
        theStack.push(33);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(33,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(33,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(792,theStack.top().intValue());
        theStack.push(976);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(976,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(976,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(792,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(385,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(738,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(496,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(405);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(405,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(405,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(974);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(974,theStack.top().intValue());
        theStack.push(920);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(920,theStack.top().intValue());
        theStack.push(815);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(815,theStack.top().intValue());
        theStack.push(737);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(737,theStack.top().intValue());
        theStack.push(531);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(531,theStack.top().intValue());
        theStack.push(279);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(279,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(279,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(531,theStack.top().intValue());
        theStack.push(970);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(970,theStack.top().intValue());
        theStack.push(415);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(415,theStack.top().intValue());
        theStack.push(884);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(884,theStack.top().intValue());
        theStack.push(703);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(703,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(703,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(884,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(884,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(415,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(970,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(531,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(737,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(815,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(920,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(974,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(976);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(976,theStack.top().intValue());
        theStack.push(333);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(333,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(333,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(976,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(955);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(955,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(955,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(68);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(68,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(68,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(701);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(701,theStack.top().intValue());
        theStack.push(258);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(258,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(258,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(701,theStack.top().intValue());
    }

    @Test
    public void test07()
    {
        Integer tmp;
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(456);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(456,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(456,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(983);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(983,theStack.top().intValue());
        theStack.push(134);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(134,theStack.top().intValue());
        theStack.push(639);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(639,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(639,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(134,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(134,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(983,theStack.top().intValue());
        theStack.push(721);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(721,theStack.top().intValue());
        theStack.push(219);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(219,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(219,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(721,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(721,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(983,theStack.top().intValue());
        theStack.push(425);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(425,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(425,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(983,theStack.top().intValue());
        theStack.push(196);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(196,theStack.top().intValue());
        theStack.push(720);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(720,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(720,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(196,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(983,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(741);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(741,theStack.top().intValue());
        theStack.push(731);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(731,theStack.top().intValue());
        theStack.push(697);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(697,theStack.top().intValue());
        theStack.push(519);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(519,theStack.top().intValue());
        theStack.push(188);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(188,theStack.top().intValue());
        theStack.push(943);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(943,theStack.top().intValue());
        theStack.push(267);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(267,theStack.top().intValue());
        theStack.push(467);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(467,theStack.top().intValue());
        theStack.push(845);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(845,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(845,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(467,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(467,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(267,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(943,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(188,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(519,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(697,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(731,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(741,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(489);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(489,theStack.top().intValue());
        theStack.push(801);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(801,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(801,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(489,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(489,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(591);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(591,theStack.top().intValue());
        theStack.push(439);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(439,theStack.top().intValue());
        theStack.push(195);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(195,theStack.top().intValue());
        theStack.push(937);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(937,theStack.top().intValue());
        theStack.push(575);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(575,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(575,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(937,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(195,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(439,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(591,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(250);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(250,theStack.top().intValue());
        theStack.push(505);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(505,theStack.top().intValue());
        theStack.push(459);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(459,theStack.top().intValue());
        theStack.push(269);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(269,theStack.top().intValue());
        theStack.push(158);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(158,theStack.top().intValue());
        theStack.push(744);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(744,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(744,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(158,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(269,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(459,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(505,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(250,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(483);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(483,theStack.top().intValue());
        theStack.push(168);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(168,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(168,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(483,theStack.top().intValue());
        theStack.push(22);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(22,theStack.top().intValue());
        theStack.push(259);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(259,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(259,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(22,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(22,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(483,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(84);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(84,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(84,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(864);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(864,theStack.top().intValue());
        theStack.push(689);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(689,theStack.top().intValue());
        theStack.push(235);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(235,theStack.top().intValue());
        theStack.push(235);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(235,theStack.top().intValue());
        theStack.push(974);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(974,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(974,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(235,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(235,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(689,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(864,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(959);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(959,theStack.top().intValue());
        theStack.push(901);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(901,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(901,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(959,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(337);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(337,theStack.top().intValue());
        theStack.push(980);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(980,theStack.top().intValue());
        theStack.push(527);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(527,theStack.top().intValue());
        theStack.push(781);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(781,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(781,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(527,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(980,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(337,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(265);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(265,theStack.top().intValue());
        theStack.push(182);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(182,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(182,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(265,theStack.top().intValue());
        theStack.push(305);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(305,theStack.top().intValue());
        theStack.push(640);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(640,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(640,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(305,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(305,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(265,theStack.top().intValue());
        theStack.push(861);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(861,theStack.top().intValue());
        theStack.push(226);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(226,theStack.top().intValue());
        theStack.push(974);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(974,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(974,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(226,theStack.top().intValue());
        theStack.push(56);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(56,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(56,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(226,theStack.top().intValue());
        theStack.push(973);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(973,theStack.top().intValue());
        theStack.push(492);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(492,theStack.top().intValue());
        theStack.push(333);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(333,theStack.top().intValue());
        theStack.push(466);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(466,theStack.top().intValue());
        theStack.push(575);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(575,theStack.top().intValue());
        theStack.push(613);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(613,theStack.top().intValue());
        theStack.push(357);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(357,theStack.top().intValue());
        theStack.push(365);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(365,theStack.top().intValue());
        theStack.push(166);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(166,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(166,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(365,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(357,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(613,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(575,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(466,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(333,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(492,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(973,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(226,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(861,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(265,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(625);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(625,theStack.top().intValue());
        theStack.push(253);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(253,theStack.top().intValue());
        theStack.push(92);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(92,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(92,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(253,theStack.top().intValue());
        theStack.push(778);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(778,theStack.top().intValue());
        theStack.push(901);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(901,theStack.top().intValue());
        theStack.push(962);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(962,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(962,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(901,theStack.top().intValue());
    }

    @Test
    public void test08()
    {
        Integer tmp;
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(772);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(772,theStack.top().intValue());
        theStack.push(44);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(44,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(44,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(772,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(983);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(983,theStack.top().intValue());
        theStack.push(771);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(771,theStack.top().intValue());
        theStack.push(932);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(932,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(932,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(771,theStack.top().intValue());
        theStack.push(39);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(39,theStack.top().intValue());
        theStack.push(724);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(724,theStack.top().intValue());
        theStack.push(917);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(917,theStack.top().intValue());
        theStack.push(362);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(362,theStack.top().intValue());
        theStack.push(70);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(70,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(70,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(362,theStack.top().intValue());
        theStack.push(584);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(584,theStack.top().intValue());
        theStack.push(672);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(672,theStack.top().intValue());
        theStack.push(2);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(2,theStack.top().intValue());
        theStack.push(679);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(679,theStack.top().intValue());
        theStack.push(873);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(873,theStack.top().intValue());
        theStack.push(336);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(336,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(336,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(873,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(873,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(679,theStack.top().intValue());
        theStack.push(823);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(823,theStack.top().intValue());
        theStack.push(462);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(462,theStack.top().intValue());
        theStack.push(274);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(274,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(274,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(462,theStack.top().intValue());
        theStack.push(626);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(626,theStack.top().intValue());
        theStack.push(639);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(639,theStack.top().intValue());
        theStack.push(75);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(75,theStack.top().intValue());
        theStack.push(542);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(542,theStack.top().intValue());
        theStack.push(397);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(397,theStack.top().intValue());
        theStack.push(189);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(189,theStack.top().intValue());
        theStack.push(384);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(384,theStack.top().intValue());
        theStack.push(874);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(874,theStack.top().intValue());
        theStack.push(865);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(865,theStack.top().intValue());
        theStack.push(728);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(728,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(728,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(865,theStack.top().intValue());
        theStack.push(975);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(975,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(975,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(865,theStack.top().intValue());
        theStack.push(871);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(871,theStack.top().intValue());
        theStack.push(613);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(613,theStack.top().intValue());
        theStack.push(71);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(71,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(71,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(613,theStack.top().intValue());
        theStack.push(734);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(734,theStack.top().intValue());
        theStack.push(64);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(64,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(64,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(734,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(613,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(871,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(865,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(874,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(384,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(189,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(397,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(542,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(75,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(639,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(626,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(462,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(823,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(679,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(2,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(672,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(584,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(362,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(917,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(724,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(39,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(771,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(983,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(392);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(392,theStack.top().intValue());
        theStack.push(906);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(906,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(906,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(392,theStack.top().intValue());
        theStack.push(734);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(734,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(734,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(392,theStack.top().intValue());
        theStack.push(560);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(560,theStack.top().intValue());
        theStack.push(853);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(853,theStack.top().intValue());
        theStack.push(283);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(283,theStack.top().intValue());
        theStack.push(948);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(948,theStack.top().intValue());
        theStack.push(364);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(364,theStack.top().intValue());
        theStack.push(825);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(825,theStack.top().intValue());
        theStack.push(80);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(80,theStack.top().intValue());
        theStack.push(886);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(886,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(886,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(80,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(80,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(825,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(364,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(948,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(283,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(853,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(560,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(392,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(405);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(405,theStack.top().intValue());
        theStack.push(996);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(996,theStack.top().intValue());
        theStack.push(198);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(198,theStack.top().intValue());
        theStack.push(926);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(926,theStack.top().intValue());
        theStack.push(681);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(681,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(681,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(926,theStack.top().intValue());
        theStack.push(893);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(893,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(893,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(926,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(198,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(996,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(405,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(225);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(225,theStack.top().intValue());
        theStack.push(540);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(540,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(540,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(225,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(286);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(286,theStack.top().intValue());
        theStack.push(289);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(289,theStack.top().intValue());
        theStack.push(142);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(142,theStack.top().intValue());
        theStack.push(225);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(225,theStack.top().intValue());
        theStack.push(124);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(124,theStack.top().intValue());
        theStack.push(662);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(662,theStack.top().intValue());
        theStack.push(389);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(389,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(389,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(662,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(662,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(124,theStack.top().intValue());
        theStack.push(950);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(950,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(950,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(124,theStack.top().intValue());
        theStack.push(392);

        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(392,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(392,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(124,theStack.top().intValue());
        theStack.push(309);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(309,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(309,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(124,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(124,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(225,theStack.top().intValue());
        theStack.push(550);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(550,theStack.top().intValue());
        theStack.push(760);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(760,theStack.top().intValue());
        theStack.push(585);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(585,theStack.top().intValue());
        theStack.push(132);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(132,theStack.top().intValue());
        theStack.push(207);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(207,theStack.top().intValue());
        theStack.push(716);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(716,theStack.top().intValue());
        theStack.push(805);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(805,theStack.top().intValue());
        theStack.push(274);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(274,theStack.top().intValue());
        theStack.push(144);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(144,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(144,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(274,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(805,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(716,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(207,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(132,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(585,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(760,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(550,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(225,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(142,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(289,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(286,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(99);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(99,theStack.top().intValue());
        theStack.push(404);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(404,theStack.top().intValue());
    }

    @Test
    public void test09()
    {
        Integer tmp;
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(858);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(858,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(858,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(139);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(139,theStack.top().intValue());
        theStack.push(954);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(954,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(954,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(139,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(861);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(861,theStack.top().intValue());
        theStack.push(879);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(879,theStack.top().intValue());
        theStack.push(757);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(757,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(757,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(879,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(879,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(861,theStack.top().intValue());
        theStack.push(290);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(290,theStack.top().intValue());
        theStack.push(288);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(288,theStack.top().intValue());
        theStack.push(200);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(200,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(200,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(288,theStack.top().intValue());
        theStack.push(155);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(155,theStack.top().intValue());
        theStack.push(989);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(989,theStack.top().intValue());
        theStack.push(362);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(362,theStack.top().intValue());
        theStack.push(62);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(62,theStack.top().intValue());
        theStack.push(716);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(716,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(716,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(62,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(362,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(989,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(155,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(288,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(290,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(861,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(152);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(152,theStack.top().intValue());
        theStack.push(503);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(503,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(503,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(152,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(386);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(386,theStack.top().intValue());
        theStack.push(487);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(487,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(487,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(386,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(386,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(256);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(256,theStack.top().intValue());
        theStack.push(135);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(135,theStack.top().intValue());
        theStack.push(260);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(260,theStack.top().intValue());
        theStack.push(625);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(625,theStack.top().intValue());
        theStack.push(356);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(356,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(356,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(625,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(260,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(135,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(256,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(628);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(628,theStack.top().intValue());
        theStack.push(522);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(522,theStack.top().intValue());
        theStack.push(177);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(177,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(177,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(522,theStack.top().intValue());
        theStack.push(55);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(55,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(55,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(522,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(522,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(628,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(46);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(46,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(46,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(400);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(400,theStack.top().intValue());
        theStack.push(876);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(876,theStack.top().intValue());
        theStack.push(417);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(417,theStack.top().intValue());
        theStack.push(725);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(725,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(725,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(417,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(417,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(876,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(876,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(400,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(400,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(329);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(329,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(329,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(681);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(681,theStack.top().intValue());
        theStack.push(231);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(231,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(231,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(681,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(99);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(99,theStack.top().intValue());
        theStack.push(894);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(894,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(894,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(99,theStack.top().intValue());
        theStack.push(948);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(948,theStack.top().intValue());
        theStack.push(313);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(313,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(313,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(948,theStack.top().intValue());
        theStack.push(811);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(811,theStack.top().intValue());
        theStack.push(102);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(102,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(102,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(811,theStack.top().intValue());
        theStack.push(290);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(290,theStack.top().intValue());
        theStack.push(258);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(258,theStack.top().intValue());
        theStack.push(323);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(323,theStack.top().intValue());
        theStack.push(610);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(610,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(610,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(323,theStack.top().intValue());
        theStack.push(976);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(976,theStack.top().intValue());
        theStack.push(140);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(140,theStack.top().intValue());
        theStack.push(169);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(169,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(169,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(140,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(140,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(976,theStack.top().intValue());
        theStack.push(281);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(281,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(281,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(976,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(976,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(323,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(323,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(258,theStack.top().intValue());
        theStack.push(577);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(577,theStack.top().intValue());
        theStack.push(642);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(642,theStack.top().intValue());
        theStack.push(407);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(407,theStack.top().intValue());
        theStack.push(787);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(787,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(787,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(407,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(642,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(577,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(258,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(290,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(811,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(948,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(99,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(72);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(72,theStack.top().intValue());
        theStack.push(651);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(651,theStack.top().intValue());
        theStack.push(603);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(603,theStack.top().intValue());
        theStack.push(566);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(566,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(566,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(603,theStack.top().intValue());
        theStack.push(572);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(572,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(572,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(603,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(651,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(72,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(725);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(725,theStack.top().intValue());
        theStack.push(931);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(931,theStack.top().intValue());
        theStack.push(359);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(359,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(359,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(931,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(725,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(610);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(610,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(610,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
    }

    @Test
    public void test10()
    {
        Integer tmp;
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(963);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(963,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(963,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(179);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(179,theStack.top().intValue());
        theStack.push(479);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(479,theStack.top().intValue());
        theStack.push(88);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(88,theStack.top().intValue());
        theStack.push(602);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(602,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(602,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(88,theStack.top().intValue());
        theStack.push(29);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(29,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(29,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(88,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(479,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(179,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(217);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(217,theStack.top().intValue());
        theStack.push(345);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(345,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(345,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(217,theStack.top().intValue());
        theStack.push(836);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(836,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(836,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(217,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(299);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(299,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(299,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(791);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(791,theStack.top().intValue());
        theStack.push(684);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(684,theStack.top().intValue());
        theStack.push(516);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(516,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(516,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(684,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(684,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(791,theStack.top().intValue());
        theStack.push(898);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(898,theStack.top().intValue());
        theStack.push(6);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(6,theStack.top().intValue());
        theStack.push(742);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(742,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(742,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(6,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(898,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(791,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(326);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(326,theStack.top().intValue());
        theStack.push(557);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(557,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(557,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(326,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(79);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(79,theStack.top().intValue());
        theStack.push(604);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(604,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(604,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(79,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(776);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(776,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(776,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(495);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(495,theStack.top().intValue());
        theStack.push(963);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(963,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(963,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(495,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(4);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        theStack.push(408);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(408,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(408,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(4,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(4,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(42);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(42,theStack.top().intValue());
        theStack.push(839);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(839,theStack.top().intValue());
        theStack.push(125);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(125,theStack.top().intValue());
        theStack.push(435);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(435,theStack.top().intValue());
        theStack.push(594);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(594,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(594,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(435,theStack.top().intValue());
        theStack.push(502);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(502,theStack.top().intValue());
        theStack.push(397);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(397,theStack.top().intValue());
        theStack.push(316);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(316,theStack.top().intValue());
        theStack.push(17);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(17,theStack.top().intValue());
        theStack.push(141);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(141,theStack.top().intValue());
        theStack.push(611);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(611,theStack.top().intValue());
        theStack.push(909);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(909,theStack.top().intValue());
        theStack.push(47);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(47,theStack.top().intValue());
        theStack.push(973);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(973,theStack.top().intValue());
        theStack.push(122);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(122,theStack.top().intValue());
        theStack.push(426);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(426,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(426,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(122,theStack.top().intValue());
        theStack.push(485);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(485,theStack.top().intValue());
        theStack.push(446);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(446,theStack.top().intValue());
        theStack.push(196);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(196,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(196,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(446,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(485,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(122,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(973,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(47,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(909,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(611,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(141,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(17,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(316,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(397,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(502,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(435,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(125,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(839,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(42,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(248);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(248,theStack.top().intValue());
        theStack.push(895);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(895,theStack.top().intValue());
        theStack.push(625);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(625,theStack.top().intValue());
        theStack.push(103);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(103,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(103,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(625,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(895,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(248,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(873);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(873,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(873,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(457);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(457,theStack.top().intValue());
        theStack.push(8);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(8,theStack.top().intValue());
        theStack.push(859);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(859,theStack.top().intValue());
        theStack.push(464);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(464,theStack.top().intValue());
        theStack.push(532);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(532,theStack.top().intValue());
        theStack.push(377);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(377,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(377,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(532,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(464,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(859,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(8,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(457,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(428);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(428,theStack.top().intValue());
        theStack.push(455);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(455,theStack.top().intValue());
        theStack.push(884);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(884,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(884,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(455,theStack.top().intValue());
        theStack.push(871);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(871,theStack.top().intValue());
        theStack.push(605);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(605,theStack.top().intValue());
        theStack.push(237);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(237,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(237,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(605,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(605,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(871,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(455,tmp.intValue());
        tmp = theStack.pop();
        assertEquals(428,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(507);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(507,theStack.top().intValue());
        theStack.push(809);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(809,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(809,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(507,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(507,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(592);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(592,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(592,tmp.intValue());
        assertTrue(theStack.isEmpty());
        assertNull(theStack.top());
        theStack.push(307);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(307,theStack.top().intValue());
        theStack.push(711);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(711,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(711,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(307,theStack.top().intValue());
        theStack.push(531);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(531,theStack.top().intValue());
        theStack.push(918);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(918,theStack.top().intValue());
        theStack.push(561);
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(561,theStack.top().intValue());
        tmp = theStack.pop();
        assertEquals(561,tmp.intValue());
        assertFalse(theStack.isEmpty());
        assertNotNull(theStack.top());
        assertEquals(918,theStack.top().intValue());
    }
}
