### Question:
ISODate { public static String getJulianDate(Date d) { String day = formatDate(d, "DDD", TimeZone.getDefault()); String year = formatDate(d, "yy", TimeZone.getDefault()); year = year.substring(1); return year + day; } private  ISODate(); static String formatDate(Date d, String pattern); static String formatDate(Date d, String pattern, TimeZone timeZone); static Date parse(String s); static Date parse(String s, TimeZone timeZone); static Date parseDateTime(String s); static Date parseDateTime(String s, TimeZone timeZone); static Date parseISODate(String d); static Date parseISODate(String d, TimeZone timeZone); static Date parseISODate(String d, long currentTime); static Date parseISODate(String d, long currentTime, TimeZone timeZone); static String getDateTime(Date d); static String getDateTime(Date d, TimeZone timeZone); static String getTime(Date d); static String getTime(Date d, TimeZone timeZone); static String getDate(Date d); static String getDate(Date d, TimeZone timeZone); static String getANSIDate(Date d); static String getANSIDate(Date d, TimeZone timeZone); static String getEuropeanDate(Date d); static String getEuropeanDate(Date d, TimeZone timeZone); static String getExpirationDate(Date d); static String getExpirationDate(Date d, TimeZone timeZone); static String getJulianDate(Date d); static String getJulianDate(Date d, TimeZone timeZone); static final long ONE_YEAR; }### Answer:
@Test public void testGetJulianDate() { GregorianCalendar cal = new GregorianCalendar(aus); cal.set(2011, 02, 25); String result = ISODate.getJulianDate(cal.getTime(), aus); assertThat(result, is("1084")); }