String[] args = {"-c", "defaulthotdeploy", "-Djboss.server.deployerBeansPrefix="+deployPrefix};
Main main = new Main();
main.boot(args);
Server server = main.getServer();
assertTrue("Server", server instanceof ServerImpl);
ServerImpl serverImpl = (ServerImpl) server;
// Validate that the expected deployment beans exist
Kernel kernel = serverImpl.getKernel();