public void verifyExists(String streamName, String definition, boolean deployed) {
		final String passwordMaskedDefinition = PasswordUtils.maskPasswordsInDefinition(definition);
		CommandResult cr = getShell().executeCommand("stream list");
		assertTrue("Failure.  CommandResult = " + cr.toString(), cr.isSuccess());
		Table t = (Table) cr.getResult();
		assertTrue(t.getRows().contains(
				new TableRow().addValue(1, streamName).addValue(2, passwordMaskedDefinition.replace("\\\\", "\\")).addValue(
						3,
						deployed ? "deployed" : "undeployed")));
	}
Verify the stream is listed in stream list.

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