### Question:
Now { public Now() { this(true); } Now(); private  Now(boolean delegate); static Now getInstance(); long get(); @Override boolean equals(Object o2); @Override int hashCode();  }### Answer:
@Test public void testNow() throws InterruptedException { Now now = Now.getInstance(); for (int i = 0; i < 5; i++) { long time = System.currentTimeMillis(); long nowTime = now.get(); long time2 = System.currentTimeMillis(); Assert.assertTrue("Failed to get a reasonable time from the Now class....may be due running tests on a very busy machine", Math.abs(nowTime - time) < (1100 + time2 - time)); Thread.sleep(1000); } }