MidnightTime { static void resetCache() { hits = 0; misses = 0; times.clear(); }  static long calc(); static long calc(long time); static String log();  }
@Test public void resetCache() { long now = DateUtil.now(); MidnightTime.calc(now); MidnightTime.resetCache(); Assert.assertEquals(0, MidnightTime.times.size()); }