/**
* This tests that options passed in the definition of a composed module are kept as first level defaults.
*/
@Test
public void testComposedModulesValuesInDefinition() throws IOException {
FileSink sink = newFileSink().binary(true);
HttpSource httpSource = newHttpSource();
compose().newModule("filterAndTransform",
"filter --expression=true | transform --expression=payload.replace('abc','...')");
stream().create(generateStreamName(), "%s | filterAndTransform | %s", httpSource, sink);
httpSource.ensureReady().postData("abcdefghi!");