@Test
	public void testStreamDestroyMissing() {
		logger.info("Destroy a stream that doesn't exist");
		String streamName = generateStreamName();
		CommandResult cr = getShell().executeCommand("stream destroy --name " + streamName);
		assertTrue("Failure.  CommandResult = " + cr.toString(), !cr.isSuccess());
		assertTrue("Failure.  CommandResult = " + cr.toString(),
				cr.getException().getMessage().contains("There is no stream definition named '" + streamName + "'"));
	}
Test stream commands

@author Mark Pollack
@author Kashyap Parikh
@author Andy Clement
@author David Turanski
@author Ilayaperumal Gopinathan
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractStreamCommandsTests.java