### Question:
TimeManager { public synchronized double getElapsedTimeInSeconds() { double currentTime = System.currentTimeMillis(); return ((currentTime - startTime) / 1000); } TimeManager(); synchronized double getElapsedTimeInHours(); synchronized double getElapsedTimeInMinutes(); synchronized double getElapsedTimeInSeconds(); synchronized double getElapsedTimeInMilliSeconds();  }### Answer:
@Test public void testGetElapsedTimeInSeconds() { TimeManager instance = new TimeManager(); double expResult = 0.36; myMethod(360); double result = instance.getElapsedTimeInSeconds(); Assert.assertEquals(expResult, result, 0.36); }