@Test
	public void testWhenNotMatching() {
		SingletonModuleRegistry mr = new SingletonModuleRegistry(processor, "foo");

		assertThat(mr.findDefinition("bar", processor), not(module("foo", processor)));
		assertThat(mr.findDefinitions("foo"), not(contains(module("foo", source))));
		assertThat(mr.findDefinitions(sink), not(contains(module("foo", processor))));
		assertThat(mr.findDefinitions(), not(contains(module("bar", processor))));

	}
Tests for {@link SingletonModuleRegistry}.

@author Eric Bottard
@author David Turanski
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/module/SingletonModuleRegistryTests.java