SimpleTimeZone st = new SimpleTimeZone(1000, "Test_TZ");
// Spec indicates that both end and start must be set or result is
// undefined
st.setStartRule(Calendar.NOVEMBER, 8, Calendar.SUNDAY, 1, false);
st.setEndRule(Calendar.NOVEMBER, 15, Calendar.SUNDAY, 1, true);
assertTrue("StartRule improperly set1", st.useDaylightTime());
assertTrue("StartRule improperly set2", st
.inDaylightTime((new GregorianCalendar(1999, Calendar.NOVEMBER,
7, 12, 0).getTime())));
assertTrue("StartRule improperly set3", st
.inDaylightTime((new GregorianCalendar(1999, Calendar.NOVEMBER,