public void deploy(String streamname) {
		CommandResult cr = getShell().executeCommand("stream deploy --name " + streamname);
		stateVerifier.waitForDeploy(streamname);
		assertTrue("Failure.  CommandResult = " + cr.toString(), cr.isSuccess());
		assertEquals("Deployed stream '" + streamname + "'", cr.getResult());
	}
Deploy the given stream

@param streamname name of the stream
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/StreamCommandsTemplate.java