public boolean hasCommand(String commandName) {

        BaseCommand command;
        try {
            command = frameworkModel.getExtensionLoader(BaseCommand.class).getExtension(commandName);
        } catch (Throwable throwable) {
            return false;
        }

        return command != null;
    }
@Test
    void testHasCommand() {
        assertTrue(commandHelper.hasCommand("greeting"));
        assertFalse(commandHelper.hasCommand("not-exiting"));
    }