It's feasible to do so. However, for tests, the entry should be AdminCommand.executeCommand(args).