EthiopianCalendar extends ChronologyBasedCalendar { @Override public DateTimeUnit isoStartOfYear( int year ) { return fromIso( super.isoStartOfYear( year ) ); } protected  EthiopianCalendar(); static Calendar getInstance(); @Override String name(); @Override DateTimeUnit toIso( DateTimeUnit dateTimeUnit ); @Override DateTimeUnit fromIso( Date date ); @Override DateTimeUnit fromIso( DateTimeUnit dateTimeUnit ); @Override DateTimeUnit plusDays( DateTimeUnit dateTimeUnit, int days ); @Override DateTimeUnit minusDays( DateTimeUnit dateTimeUnit, int days ); @Override DateTimeUnit plusWeeks( DateTimeUnit dateTimeUnit, int weeks ); @Override DateTimeUnit minusWeeks( DateTimeUnit dateTimeUnit, int weeks ); @Override DateTimeUnit plusMonths( DateTimeUnit dateTimeUnit, int months ); @Override DateTimeUnit minusMonths( DateTimeUnit dateTimeUnit, int months ); @Override DateTimeUnit plusYears( DateTimeUnit dateTimeUnit, int years ); @Override DateTimeUnit minusYears( DateTimeUnit dateTimeUnit, int years ); @Override int daysInYear( int year ); @Override int daysInMonth( int year, int month ); @Override int daysInWeek(); @Override DateTimeUnit isoStartOfYear( int year );  }
@Test public void testIsoStartOfYear() { DateTimeUnit startOfYear = calendar.isoStartOfYear( 2007 ); assertEquals( 2014, startOfYear.getYear() ); assertEquals( 9, startOfYear.getMonth() ); assertEquals( 11, startOfYear.getDay() ); }