public void assertValid(String data, AbstractModuleFixture<?> sinkInstance) {
		Assert.hasText(data, "data can not be empty nor null");
		Assert.notNull(sinkInstance, "sinkInstance must not be null");
		if (sinkInstance.getClass().equals(SimpleFileSink.class)) {
			assertValidFile(data, containerResolver.getContainerUrlForSink(STREAM_NAME), STREAM_NAME);
		}
		if (sinkInstance.getClass().equals(LogSink.class)) {
			assertLogEntry(data, containerResolver.getContainerUrlForSink(STREAM_NAME));
		}

	}
Asserts that the data stored by the file or log sink is what was expected.

@param data The data expected in the file or log sink
@param sinkInstance determines whether to look at the log or file for the result
spring-xd-integration-test/src/test/java/org/springframework/xd/integration/test/AbstractIntegrationTest.java