assertEquals(new Integer(3), e.getUpperBound());
}
}
public void testSkipDateTimeField() {
DateTimeField field = new SkipDateTimeField
(ISOChronology.getInstanceUTC(), ISOChronology.getInstanceUTC().year(), 1970);
try {
field.set(0, 1970);
fail();
} catch (IllegalFieldValueException e) {
assertEquals(DateTimeFieldType.year(), e.getDateTimeFieldType());
assertEquals(null, e.getDurationFieldType());
assertEquals("year", e.getFieldName());