@Test
	public void testTextLineModeWithIncorrectMode() throws IOException {
		try {
			deployStream(
					"failme",
					"file --mode=failme --dir=" + sourceDirName + " --fixedDelay=0 | sink");
		}
		catch (ModuleConfigurationException e) {
			String expectation = "Failed to convert property value of type [java.lang.String] to required type "
					+ "[org.springframework.xd.dirt.modules.metadata.FileReadingMode] for property 'mode'";
			assertThat(e.getMessage(), containsString(expectation));
			return;
		}

		fail("Was expecting a 'ModuleConfigurationException' to be thrown.");

	}
@author David Turanski
@author Gunnar Hillert
@author Gary Russell
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/stream/FileSourceModuleTests.java