public static synchronized void doStartUp() throws InterruptedException, IOException {
		RandomConfigurationSupport randomConfigSupport = new RandomConfigurationSupport();
		if (application == null) {
			application = new SingleNodeApplication().run("--transport", "local", "--analytics", "redis");
			integrationTestSupport = new SingleNodeIntegrationTestSupport(application);
			integrationTestSupport.addModuleRegistry(new ResourceModuleRegistry("classpath:/spring-xd/xd/modules"));
			String adminServerPort = randomConfigSupport.getAdminServerPort();
			adminPort = Integer.valueOf(adminServerPort);
			Bootstrap bootstrap = new Bootstrap(new String[] { "--port", adminServerPort });
			shell = bootstrap.getJLineShellComponent();
		}
		if (!shell.isRunning()) {
			shell.start();
		}
	}
Used to capture currently executing test method.
spring-xd-shell/src/test/java/org/springframework/xd/shell/AbstractShellIntegrationTest.java