ScenarioSimulationKogitoRuntimeCreationAssetsDropdownProviderImpl implements ScenarioSimulationKogitoCreationAssetsDropdownProvider { protected ErrorCallback<Object> getErrorCallback() { return (message, throwable) -> { errorPopupPresenter.showMessage(message + ": " + throwable.getMessage()); return false; }; }  @Override void getItems(Consumer<List<KieAssetsDropdownItem>> assetListConsumer);  }
@Test public void getErrorCallback() { ErrorCallback<Object> errorCallback = scenarioSimulationKogitoRuntimeCreationAssetsDropdownProviderImplSpy.getErrorCallback(); assertFalse(errorCallback.error("message", new Throwable("ex"))); verify(errorPopupPresenterMock, times(1)).showMessage(eq("message: ex")); }