TimeOut { public void setTimeOut(double timeout) { this.time = timeout; } protected  TimeOut(); static synchronized TimeOut getInstance(); void setTimeOut(double timeout); double getTimeOut(); boolean isTimeOutFlag(); void setTimeOutFlag(boolean timeOut);  }
@Test public void testSetTimeOut() { TimeOut timeOut = TimeOut.getInstance(); timeOut.setTimeOut(0.1); Assert.assertEquals(0.1, timeOut.getTimeOut(), 0.0001); timeOut.setTimeOut(0.2); Assert.assertEquals(0.2, timeOut.getTimeOut(), 0.0001); }