### Question:
DateTime { public int getDayOfWeek() { long rebiasedMills = millis + MILLIS_FROM_1601_TO_1970; int dayOfWeek = (int) (rebiasedMills / 1000 / 86400 + 1) % 7; if (dayOfWeek == 0) dayOfWeek = 7; return dayOfWeek; } DateTime(long millis);  DateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour);  DateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute);  DateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute,
                    int millisOfSecond); static DateTime now(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); static boolean isLeapYear(int year); long toMillis(); int getYear(); int getMonthOfYear(); int getDayOfYear(); int getDayOfMonth(); int getDayOfWeek(); int getHourOfDay(); int getMinuteOfHour(); int getSecondOfMinute(); int getMillisOfSecond(); DateTime plusMillis(long millis); DateTime plusSeconds(long seconds); DateTime plusMinutes(long minutes); DateTime plusHours(long hours); static long rfc3339ToMillis(String rfc3339DateTime); static DateTime parseRFC3339(String rfc3339DateTime); String toRFC3339String(); static final int MILLISECONDS_PER_SECOND; static final int MILLISECONDS_PER_MINUTE; static final int MILLISECONDS_PER_HOUR; static final int MILLISECONDS_PER_DAY; static final long NULL_DATE; }### Answer:
@Test public void testGetDayOfWeek() { validateDayOfWeek("1969-12-28T00:01:00Z", 7); validateDayOfWeek("1969-12-29T00:00:00Z", 1); validateDayOfWeek("1969-12-30T11:59:59Z", 2); validateDayOfWeek("1969-12-31T03:59:59Z", 3); validateDayOfWeek("1969-12-31T23:59:59Z", 3); validateDayOfWeek("1970-01-01T00:00:00Z", 4); validateDayOfWeek("1970-01-01T00:00:01Z", 4); validateDayOfWeek("1999-12-31T23:59:59Z", 5); validateDayOfWeek("2000-01-01T00:00:00Z", 6); validateDayOfWeek("2000-01-01T00:00:01Z", 6); validateDayOfWeek("2000-12-31T23:59:59Z", 7); validateDayOfWeek("2001-01-01T00:00:00Z", 1); validateDayOfWeek("2001-01-01T00:00:01Z", 1); validateDayOfWeek("1601-01-01T00:00:01Z", 1); validateDayOfWeek("1832-08-01T00:00:01Z", 3); validateDayOfWeek("1832-10-14T00:00:01Z", 7); validateDayOfWeek("1832-10-15T00:00:01Z", 1); validateDayOfWeek("2013-05-05T23:00:01Z", 7); }