### Question:
DMNGraphSubIndex implements DMNSubIndex { @Override public void onNoResultsFound() { getCanvasHandler().ifPresent(canvasHandler -> { canvasClearSelectionEventEvent.fire(new CanvasClearSelectionEvent(canvasHandler)); domainObjectSelectionEvent.fire(new DomainObjectSelectionEvent(canvasHandler, new NOPDomainObject())); }); } @Inject  DMNGraphSubIndex(final DMNGraphUtils graphUtils,
                            final Event<CanvasSelectionEvent> canvasSelectionEvent,
                            final Event<CanvasFocusedShapeEvent> canvasFocusedSelectionEvent,
                            final Event<CanvasClearSelectionEvent> canvasClearSelectionEventEvent,
                            final Event<DomainObjectSelectionEvent> domainObjectSelectionEvent); @Override List<DMNSearchableElement> getSearchableElements(); @Override void onNoResultsFound();  }### Answer:
@Test public void testOnNoResultsFound() { index.onNoResultsFound(); verify(canvasClearSelectionEventEvent).fire(any(CanvasClearSelectionEvent.class)); verify(domainObjectSelectionEvent).fire(any(DomainObjectSelectionEvent.class)); }