### Question:
TimeMathParser { public static long nowInSeconds() { return TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS); }  static long nowInSeconds(); static int resolutionInSeconds(String resolutionStr); static long parseTimeInSeconds(String timeStr); static long parseTime(String timeStr, TimeUnit timeUnit); static long parseTimeInSeconds(long now, String timeStr); static long parseTime(long now, String timeStr, TimeUnit timeUnit);  }### Answer:
@Test public void testGetNowInSeconds() { long now = TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS); long result = TimeMathParser.nowInSeconds(); Assert.assertTrue((result - now == 1) || result == now); }