@Test public void test_should_return_current_date() { TimeZone.setDefault(TimeZone.getTimeZone(DateConverter.IST)); assertTrue(DateUtils.truncatedEquals(new Date(), new DateFactory().now(), Calendar.SECOND)); }
public Date now() { return new Date(); }
DateFactory { public Date now() { return new Date(); } }
DateFactory { public Date now() { return new Date(); }  }
DateFactory { public Date now() { return new Date(); }  Date now(); }
DateFactory { public Date now() { return new Date(); }  Date now();  }