public void undeploy(String streamname) {
		CommandResult cr = getShell().executeCommand("stream undeploy --name " + streamname);
		stateVerifier.waitForUndeploy(streamname);
		assertTrue(cr.isSuccess());
		assertEquals("Un-deployed stream '" + streamname + "'", cr.getResult());
	}
Undeploy the given stream name

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