TimeoutRepository { public static Timeout getTimeout(String key) { return TIMEOUTS.getTimeout(Objects.requireNonNull(key, "The key can't be null.")); }  static Timeout getTimeout(String key); static void setTimeout(Timeout timeout); static void setAllCalibrationTimeouts(HashMap<String, CalibrationTimeout> calibrationTimeouts); static final Timeouts TIMEOUTS; }
@Test public void testGetTimeout() throws Exception { assertNotNull("It isn't null, if the list in the timeouts contains the timeout.", TimeoutRepository.getTimeout("Tomcat.startup")); }
@Test(expected = NoSuchElementException.class) public void testGetTimeoutNotExists() throws Exception { TimeoutRepository.getTimeout("ode.deploy"); }