void () { checkExceptionIsReported( action -> service.scheduleWithFixedDelay(action, 1, 1, TimeUnit.MILLISECONDS) ); checkExceptionIsReported( action -> service.schedule(action, 1, TimeUnit.MILLISECONDS) ); }