### Question:
Time { public static Time createTime(int year, int month, int date, int hour, int minutes, int seconds) { if (year < 0 || month > 12 || month < 0 || date < 0 || date > 31 || hour < 0 || hour > 24 || minutes < 0 || minutes > 60 || seconds < 0 || seconds > 60) { throw new IllegalArgumentException(""); } return new Time(year, month, date, hour, minutes, seconds); } Time(); private  Time(int year, int month, int date, int hour, int minutes, int seconds); static Time createTime(int year, int month, int date, int hour, int minutes, int seconds); static Time getTimeByCalendar(Calendar calendar); boolean isBefore(Time when); String getReadableTime(); String getDateReadable(); String getTimeReadable(); int getDate(); void setDate(int date); int getMonth(); void setMonth(int month); int getYear(); void setYear(int year); int getMinutes(); void setMinutes(int minutes); int getHour(); void setHour(int hour); int getSecond(); void setSecond(int second);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void isBefore_illegal_input() { Time time1 = Time.createTime(2020, 11, 44, 21, -1, 00); }