@Test
	public void testRefModeWithWithMarkersTrue() throws IOException {
		try {
			deployStream(
					"refWithMarkersTrue",
					"file --mode=ref --withMarkers=true --dir=" + sourceDirName + " --fixedDelay=0 | sink");
		}
		catch (ModuleConfigurationException e) {
			String expectation = "withMarkers can only be supplied when FileReadingMode is 'lines'";
			assertTrue("Expected the exception to contain: " + expectation, e.getMessage().contains(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