private void testEvents() {

        // year is from 0 to 8099. Month is from 0 to 11. Day is from 1 to 31
        Date date = new Date(2013 - 1900, 10, 3);
        DayEvents tempEvent = new DayEvents("Dentist Appointment", 8, 10, date);
        events.addEvent(date, tempEvent);

        tempEvent = new DayEvents("Take cat to the vet", 13, 14, date);
        events.addEvent(date, tempEvent);

        tempEvent = new DayEvents("Submit physics report", 19, 22, date);
        events.addEvent(date, tempEvent);

        tempEvent = new DayEvents("Zayna's surprise party", 15, 17, date);
        events.addEvent(date, tempEvent);

        date = new Date(2013 - 1900, 10, 30);
        tempEvent = new DayEvents("Concert w/ Robert", 12, 13, date);
        events.addEvent(date, tempEvent);

        date = new Date(2013 - 1900, 11, 25);
        tempEvent = new DayEvents("Christmas Party", 16, 20, date);
        events.addEvent(date, tempEvent);

        date = new Date(2013 - 1900, 11, 31);
        tempEvent = new DayEvents("Test Last day of the Year", 1, 17, date);
        events.addEvent(date, tempEvent);

        date = new Date(2014 - 1900, 3, 14);
        tempEvent = new DayEvents("Dinner with Teresa", 16, 17, date);
        events.addEvent(date, tempEvent);

        date = new Date(2014 - 1900, 3, 18);
        tempEvent = new DayEvents("Final Exam", 16, 17, date);
        events.addEvent(date, tempEvent);

        date = new Date(2014 - 1900, 3, 20);
        tempEvent = new DayEvents("Some event with a really long name", 11, 14, date);
        events.addEvent(date, tempEvent);

        date = new Date(2013 - 1900, 11, 2);
        events.addEvent(date, new DayEvents("test yesterday", 1, 2, date));

        date = new Date(2013 - 1900, 11, 3);
        events.addEvent(date, new DayEvents("test today", 1, 2, date));

        date = new Date(2013 - 1900, 11, 30);
        for (int i = 0; i < 23; i++) {
            events.addEvent(date, new DayEvents("test agenda view " + i, i, i + 1, date));
        }
        date = new Date(2013 - 1900, 11, 31);
        for (int i = 0; i < 23; i++) {
            events.addEvent(date, new DayEvents("test more agenda view " + i + 1, i, i + 1, date));
        }

        Random rand = new Random();
        for (int i = 1; i <= 31; i++) {
            int num = rand.nextInt(5) + 0;
            for (int j = 0, n = 0; j < num; j++) {
                date = new Date(2014 - 1900, 0, i);
                events.addEvent(date, new DayEvents("random event " + j, n, n + 1, date));
                n += 2;
            }
        }

        for (int i = 1; i <= 31; i++) {
            int num = rand.nextInt(5) + 0;
            for (int j = 0, n = 0; j < num; j++) {
                date = new Date(2013 - 1900, 10, i);
                events.addEvent(date, new DayEvents("random event " + j, n, n + 1, date));
                n += 2;
            }
        }

        for (int i = 1; i <= 31; i++) {
            int num = rand.nextInt(3) + 0;
            for (int j = 0, n = 0; j < num; j++) {
                date = new Date(2013 - 1900, 11, i);
                events.addEvent(date, new DayEvents("random event " + j, n, n + 1, date));
                n += 2;
            }
        }

    }