private void setupMockFindsForProcessor(ModuleRegistry registry) {
		when(registry.findDefinitions("processor")).thenReturn(
				Collections.singletonList(TestModuleDefinitions.dummy("processor",
						ModuleType.processor)));
		when(registry.findDefinitions("blah")).thenReturn(Collections.singletonList(TestModuleDefinitions.dummy("blah",
				ModuleType.processor)));
		when(registry.findDefinitions("filter")).thenReturn(Collections.singletonList(TestModuleDefinitions.dummy("filter",
				ModuleType.processor)));
		when(registry.findDefinitions("goo")).thenReturn(Collections.singletonList(TestModuleDefinitions.dummy("goo",
				ModuleType.processor)));
		when(registry.findDefinitions("aaak")).thenReturn(Collections.singletonList(TestModuleDefinitions.dummy("aaak",
				ModuleType.processor)));
	}
@author Mark Fisher
@author David Turanski
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/stream/XDStreamParserTests.java