### Question:
DateUtil { public static Date getUTCDate(){ try{ Calendar local=Calendar.getInstance(); int offset = local.getTimeZone().getOffset(local.getTimeInMillis()); GregorianCalendar utc = new GregorianCalendar(gmtTimeZone); utc.setTimeInMillis(local.getTimeInMillis()); utc.add(Calendar.MILLISECOND, -offset); return utc.getTime(); }catch(Exception ex){ return null; } }  Date getDateFromNow(int days); Date getDateFromNow(int days, int hours, int minutes); static String dateToString(Date date, String dateFromat); Date getDateFromGivenDate(Date date, int days, int hours,int minutes, int second); Date addTimeOffset(Date date, int mins); static Date getUTCDate(); static Date getUTCDate(long epoh); static Date stringToDate(String dateString, String dateFromat);  }### Answer:
@Ignore("test to be reviewed") @Test public void testGetUTCDate1(){ Date date=new Date(); Date userdate=DateUtil.getUTCDate(); Assert.assertEquals(userdate.getDate(),date.getDate()); }