void () { ProgressIndicator indicator = new EmptyProgressIndicator(); for (int i = 0; i < 2; i++) { assertThrows(IllegalStateException.class, indicator::stop); indicator.start(); assertThrows(IllegalStateException.class, indicator::start); indicator.stop(); assertThrows(IllegalStateException.class, indicator::stop); } }