public CommandTester whenRunCommand(String command) {
        LOGGER.info("Executing test command: " + command);
        this.executor.execute(this.sender, command).join();
        return this;
    }
Execute a command using the {@link CommandExecutor} and capture output to this test instance.

@param command the command to run
@return this
standalone/src/test/java/me/lucko/luckperms/standalone/utils/CommandTester.java