@Test
	public void tapOnNonExistentStreamModuleFails() throws Exception {
		parse("mystream = http | file");

		thrown.expect(StreamDefinitionException.class);
		thrown.expect(hasProperty("position", is(equalTo("tap:stream:mystream.".length()))));
		parse("tap:stream:mystream.foobar > log");
	}
Parse streams and verify either the correct abstract syntax tree is produced or the current exception comes out.

@author Andy Clement
@author David Turanski
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/stream/dsl/StreamConfigParserTests.java