### Question:
EventHelper { public static int getYearWeek(Date date) { if (date == null) return -1; Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(date.getTime()); return cal.get(Calendar.WEEK_OF_YEAR); } private  EventHelper(); static boolean validateEventKey(String key); static String shortName(String eventName); static int getYear(String eventKey); static int getYearWeek(Date date); static int competitionWeek(Date date); static String generateLabelForEvent(Event e); static String weekLabelFromNum(int year, @Nullable Integer weekNum); static int weekNumFromLabel(int year, String label); static void renderEventListForTeam(Context context,List<Event> events, List<Object> output); static void renderEventListForWeek(Context context, List<Event> events, List<Object> output); static void renderEventListForDistrict(
            Context context,
            List<Event> events,
            List<Object> output); static String getDateString(Date startDate, Date endDate); static String getShortCodeForEventKey(String eventKey); static String getEventCode(String matchOrEventOrDistrictKey); static final String CHAMPIONSHIP_LABEL; static final String CITY_CHAMPIONSHIP_LABEL; static final String REGIONAL_LABEL; static final String FLOAT_REGIONAL_LABEL; static final String WEEKLESS_LABEL; static final String OFFSEASON_LABEL; static final String PRESEASON_LABEL; }### Answer:
@Test public void testGetYearWeek() { assertEquals(-1, EventHelper.getYearWeek(null)); Date date = new Date(115, 1, 5); assertEquals(EventHelper.getYearWeek(date), 6); }