public void verifyTestContent(URL url, String fileName,
			String data) {
		Assert.notNull(url, "url should not be null");
		Assert.hasText(fileName, "fileName can not be empty nor null");
		Assert.hasText(data, "data can not be empty nor null");
		String resultFileName = fileName;
		if (isOnEc2) {
			resultFileName = StreamUtils.transferResultsToLocal(xdEnvironment.getPrivateKey(), url, fileName);
		}
		File file = new File(resultFileName);
		try {
			Reader fileReader = new InputStreamReader(new FileInputStream(resultFileName));
			String result = FileCopyUtils.copyToString(fileReader);
			assertEquals("Data in the result file is not what was sent. Read \""
					+ result + "\"\n but expected \"" + data + "\"", data, result);
		}
		catch (IOException ioException) {
			throw new IllegalStateException(ioException.getMessage(), ioException);
		}
		finally {
			if (file.exists()) {
				file.delete();
			}
		}

	}
Verifies that the data user gave us is what was stored after the stream has processed the flow.

@param url The server that the stream is deployed.
@param fileName The file that contains the data to check.
@param data The data used to evaluate the results of the stream.
spring-xd-integration-test/src/main/java/org/springframework/xd/integration/util/XdEc2Validation.java