@Test
	public void simpleStream() {
		List<ModuleDescriptor> requests = parser.parse("test", "foo | bar", stream);
		assertEquals(2, requests.size());
		ModuleDescriptor sink = requests.get(0);
		ModuleDescriptor source = requests.get(1);
		assertEquals("foo", source.getModuleName());
		assertEquals("test", source.getGroup());
		assertEquals(0, source.getIndex());
		assertEquals(ModuleType.source, source.getType());
		assertEquals(0, source.getParameters().size());
		assertEquals("bar", sink.getModuleName());
		assertEquals("test", sink.getGroup());
		assertEquals(1, sink.getIndex());
		assertEquals(ModuleType.sink, sink.getType());
		assertEquals(0, sink.getParameters().size());
	}
@author Mark Fisher
@author David Turanski
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/stream/XDStreamParserTests.java