@Test
	public void testCreatingTapWithSameNameAsExistingStream_xd299() {
		String streamName = generateStreamName();
		CommandResult cr = getShell().executeCommand(
				"stream create --name " + streamName + " --definition \"" + getTapName(streamName) + " > counter\"");
		assertTrue("Failure. CommandResult = " + cr.toString(), !cr.isSuccess());
		assertTrue("Failure. CommandResult = " + cr.toString(),
				cr.getException().getMessage().contains("unrecognized stream reference '" + 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