private void createTestData() throws IOException {
		FileSystem fs = FileSystem.get(getYarnCluster().getConfiguration());
		Path path = new Path("/syarn-tmp/batch-files/set1/data.txt");
		FSDataOutputStream out = fs.create(path);
		for (int i = 0; i<300; i++) {
			out.writeBytes("line" + i + "\n");
		}
		out.close();
		assertTrue(fs.exists(path));
		assertThat(fs.getFileStatus(path).getLen(), greaterThan(0l));
	}
Tests for batch files example.

@author Janne Valkealahti
yarn/yarn/batch-files/src/test/java/org/springframework/yarn/examples/BatchFilesTests.java