//-----------------------------------------------------------------------
public void testNearDstTransition() {
// This is just a regression test. Test case provided by Blair Martin.
int hour = 23;
DateTime dt;
dt = new DateTime(2006, 10, 29, hour, 0, 0, 0,
ISOChronology.getInstance(DateTimeZone.forID("America/Los_Angeles")));
assertEquals(hour, dt.getHourOfDay()); // OK - no LenientChronology
dt = new DateTime(2006, 10, 29, hour, 0, 0, 0,
LenientChronology.getInstance
(ISOChronology.getInstance(DateTimeZone.forOffsetHours(-8))));
assertEquals(hour, dt.getHourOfDay()); // OK - no TZ ID
dt = new DateTime(2006, 10, 29, hour, 0, 0, 0,
LenientChronology.getInstance
(ISOChronology.getInstance(DateTimeZone.forID("America/Los_Angeles"))));
assertEquals(hour, dt.getHourOfDay()); // Used to fail - hour was 22
}