### Question:
DMNEditorToolbar extends ManagedToolbarDelegate<EditorSession> implements EditorToolbar { @PostConstruct public void init() { toolbar.register(VisitGraphToolbarCommand.class) .register(ClearToolbarCommand.class) .register(DeleteSelectionToolbarCommand.class) .register(SwitchGridToolbarCommand.class) .register(UndoToolbarCommand.class) .register(RedoToolbarCommand.class) .register(ValidateToolbarCommand.class) .register(ExportToPngToolbarCommand.class) .register(ExportToJpgToolbarCommand.class) .register(ExportToPdfToolbarCommand.class) .register(CopyToolbarCommand.class) .register(CutToolbarCommand.class) .register(PasteToolbarCommand.class) .register(SaveToolbarCommand.class) .register(DMNPerformAutomaticLayoutToolbarCommand.class); } @Inject  DMNEditorToolbar(final ManagedToolbar<EditorSession> toolbar); @PostConstruct void init(); VisitGraphToolbarCommand getVisitGraphToolbarCommand(); ClearToolbarCommand getClearToolbarCommand(); DeleteSelectionToolbarCommand getDeleteSelectionToolbarCommand(); SwitchGridToolbarCommand getSwitchGridToolbarCommand(); UndoToolbarCommand getUndoToolbarCommand(); RedoToolbarCommand getRedoToolbarCommand(); ValidateToolbarCommand getValidateCommand(); ExportToPngToolbarCommand getExportToPngToolbarCommand(); ExportToJpgToolbarCommand getExportToJpgToolbarCommand(); ExportToPdfToolbarCommand getExportToPdfToolbarCommand(); CopyToolbarCommand getCopyToolbarCommand(); CutToolbarCommand getCutToolbarCommand(); PasteToolbarCommand getPasteToolbarCommand(); SaveToolbarCommand getSaveToolbarCommand(); DMNPerformAutomaticLayoutToolbarCommand getPerformAutomaticLayoutToolbarCommand();  }### Answer:
@Test public void testInit() { final ManagedToolbar<EditorSession> toolbar = mock(ManagedToolbar.class); when(toolbar.register(any())).thenReturn(toolbar); final DMNEditorToolbar tested = new DMNEditorToolbar(toolbar); tested.init(); verify(toolbar).register(VisitGraphToolbarCommand.class); verify(toolbar).register(ClearToolbarCommand.class); verify(toolbar).register(DeleteSelectionToolbarCommand.class); verify(toolbar).register(SwitchGridToolbarCommand.class); verify(toolbar).register(UndoToolbarCommand.class); verify(toolbar).register(RedoToolbarCommand.class); verify(toolbar).register(ValidateToolbarCommand.class); verify(toolbar).register(ExportToPngToolbarCommand.class); verify(toolbar).register(ExportToJpgToolbarCommand.class); verify(toolbar).register(ExportToPdfToolbarCommand.class); verify(toolbar).register(CopyToolbarCommand.class); verify(toolbar).register(CutToolbarCommand.class); verify(toolbar).register(PasteToolbarCommand.class); verify(toolbar).register(SaveToolbarCommand.class); verify(toolbar).register(DMNPerformAutomaticLayoutToolbarCommand.class); }