void () { doTestInterruptedAdapterProcessing(() -> { throw new ProcessCanceledException(); }, (extensionPoint, adapter) -> { assertThatThrownBy(extensionPoint::getExtensionList).isInstanceOf(ProcessCanceledException.class); adapter.setFire(null); List<String> extensions = extensionPoint.getExtensionList(); assertThat(extensionPoint.getExtensionList()).hasSize(3); assertThat(extensions.get(0)).isEqualTo("second"); assertThat(extensions.get(1)).isIn("", "first"); assertThat(extensions.get(2)).isIn("", "first"); assertThat(extensions.get(2)).isNotEqualTo(extensions.get(1)); }); }