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();
assertInstalled(kernel, "ProfileService");
assertInstalled(kernel, "MainDeployer");
assertInstalled(kernel, "BeanDeployer");
assertInstalled(kernel, "VFSDeploymentScanner");
KernelRegistry registry = kernel.getRegistry();