@Test
    public void testConstructorSimpleErrors() {
        //Check 1 ≤ m ≤ 12
        try {
            time = new Time(2014, -2, 20, 10, 0);
            fail("Able to submit a non existing Month (Month < 1)");
        } catch (IllegalArgumentException e) {
        }

        try {
            time = new Time(2014, 0, 20, 10, 0);
            fail("Able to submit a non existing Month (Month > 12)");
        } catch (IllegalArgumentException e) {
        }

        //Check 1 ≤ d ≤ 31 
        try {
            time = new Time(2014, 10, 40, 10, 0);
            fail("Able to submit a non existing Day (Day < 1)");
        } catch (IllegalArgumentException e) {
        }

        try {
            time = new Time(2014, 10, 0, 10, 0);
            fail("Able to submit a non existing Day (Day > 31)");
        } catch (IllegalArgumentException e) {
        }

        //Check 0 ≤ h ≤ 23 
        try {
            time = new Time(2014, 10, 20, -1, 0);
            fail("Able to submit a non existing Hour (Hour < 0)");
        } catch (IllegalArgumentException e) {
        }

        try {
            time = new Time(2014, 10, 20, 25, 0);
            fail("Able to submit a non existing Hour (Hour > 23)");
        } catch (IllegalArgumentException e) {
        }

        //Check 0 ≤ min ≤ 59 
        try {
            time = new Time(2014, 10, 20, 10, -1);
            fail("Able to submit a non existing Minute (Minute < 0)");
        } catch (IllegalArgumentException e) {
        }

        try {
            time = new Time(2014, 10, 20, 10, 61);
            fail("Able to submit a non existing Minute (Minute > 59)");
        } catch (IllegalArgumentException e) {
        }
    }