@Test
public void parameterizedModules() {
List<ModuleDescriptor> requests = parser.parse("test", "foo --x=1 --y=two | bar --z=3", 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());
Map<String, String> sourceParameters = source.getParameters();
assertEquals(2, sourceParameters.size());
assertEquals("1", sourceParameters.get("x"));
assertEquals("two", sourceParameters.get("y"));
assertEquals("bar", sink.getModuleName());
assertEquals("test", sink.getGroup());