TimeManager { public double getElapsedTimeInMilliSeconds() { double currentTime = System.currentTimeMillis(); return (currentTime - startTime); } TimeManager(); double getElapsedTimeInHours(); double getElapsedTimeInMinutes(); double getElapsedTimeInSeconds(); double getElapsedTimeInMilliSeconds();  }
@Test public void testGetElapsedTimeInMilliSeconds() { TimeManager instance = new TimeManager(); double expResult = 360; myMethod(360); double result = instance.getElapsedTimeInMilliSeconds(); Assert.assertEquals(expResult, result, 360); }