@Test
public void testGetYear() {

    Calendar calendar = createCalendar(2012, 11, 22, 18, 24, 53);
    Date date = calendar.getTime();
    assertEquals(2012, TimeUtil.getYear(date));
    calendar = createCalendar(1998, 4, 9, 11, 17, 38);
    date = calendar.getTime();
    assertEquals(1998, TimeUtil.getYear(date));
}