### Question:
DMNEditorSessionCommands extends EditorSessionCommands { @Override protected void registerCommands() { getCommands().register(VisitGraphSessionCommand.class) .register(SwitchGridSessionCommand.class) .register(ClearSessionCommand.class) .register(DeleteSelectionSessionCommand.class) .register(UndoSessionCommand.class) .register(RedoSessionCommand.class) .register(ValidateSessionCommand.class) .register(ExportToPngSessionCommand.class) .register(ExportToJpgSessionCommand.class) .register(ExportToPdfSessionCommand.class) .register(ExportToSvgSessionCommand.class) .register(ExportToRawFormatSessionCommand.class) .register(CopySelectionSessionCommand.class) .register(PasteSelectionSessionCommand.class) .register(CutSelectionSessionCommand.class) .register(SaveDiagramSessionCommand.class) .register(PerformAutomaticLayoutCommand.class); } @Inject  DMNEditorSessionCommands(final ManagedClientSessionCommands commands); PerformAutomaticLayoutCommand getPerformAutomaticLayoutCommand();  }### Answer:
@Test public void testRegistration() { sessionCommands.registerCommands(); verify(managedSessionCommands).register(VisitGraphSessionCommand.class); verify(managedSessionCommands).register(SwitchGridSessionCommand.class); verify(managedSessionCommands).register(ClearSessionCommand.class); verify(managedSessionCommands).register(DeleteSelectionSessionCommand.class); verify(managedSessionCommands).register(UndoSessionCommand.class); verify(managedSessionCommands).register(RedoSessionCommand.class); verify(managedSessionCommands).register(ValidateSessionCommand.class); verify(managedSessionCommands).register(ExportToPngSessionCommand.class); verify(managedSessionCommands).register(ExportToJpgSessionCommand.class); verify(managedSessionCommands).register(ExportToPdfSessionCommand.class); verify(managedSessionCommands).register(ExportToSvgSessionCommand.class); verify(managedSessionCommands).register(ExportToRawFormatSessionCommand.class); verify(managedSessionCommands).register(CopySelectionSessionCommand.class); verify(managedSessionCommands).register(PasteSelectionSessionCommand.class); verify(managedSessionCommands).register(CutSelectionSessionCommand.class); verify(managedSessionCommands).register(SaveDiagramSessionCommand.class); verify(managedSessionCommands).register(PerformAutomaticLayoutCommand.class); }