@Test(expected = IllegalStateException.class)
public void shouldFailToCreateTimeoutIfTimerNotRunning() throws Exception {

    timer.newTimeout(new Timer.TimeoutTask() {
        @Override
        public void run(Timer.TimeoutHandle timeoutHandle) {
            // empty
        }
    }, 5, TimeUnit.SECONDS);
}