### Question:
DMNEditorSearchIndex extends BaseEditorSearchIndex<DMNSearchableElement> { @PostConstruct public void init() { registerSubIndex(graphSubIndex); registerSubIndex(gridSubIndex); setNoResultsFoundCallback(getNoResultsFoundCallback()); setSearchClosedCallback(getSearchClosedCallback()); setSearchPerformedCallback(getSearchPerformedCallback()); } @Inject  DMNEditorSearchIndex(final DMNGraphSubIndex graphSubIndex,
                                final DMNGridSubIndex gridSubIndex,
                                final DMNDataTypesSubIndex dataTypesSubIndex,
                                final SessionManager sessionManager,
                                final Event<SearchPerformedEvent> searchPerformedEvent); @PostConstruct void init(); void setIsDataTypesTabActiveSupplier(final Supplier<Boolean> isDataTypesTabActiveSupplier); Supplier<Boolean> getIsDataTypesTabActiveSupplier();  }### Answer:
@Test public void testInit() { final Command noResultsFoundCallback = mock(Command.class); final Command searchClosedCallback = mock(Command.class); doReturn(noResultsFoundCallback).when(searchIndex).getNoResultsFoundCallback(); doReturn(searchClosedCallback).when(searchIndex).getSearchClosedCallback(); searchIndex.init(); verify(searchIndex).registerSubIndex(graphSubIndex); verify(searchIndex).registerSubIndex(gridSubIndex); verify(searchIndex).setNoResultsFoundCallback(noResultsFoundCallback); verify(searchIndex).setSearchClosedCallback(searchClosedCallback); }