@Override
	public void postFromFile(File file) {
		Assert.notNull(file, "file must not be null");
		try {
			restTemplate.postForObject(url, Files.toString(file, Charset.defaultCharset()), String.class);
		}
		catch (IOException e) {
			throw new GeneratorException("Could not read from file [" + file + "]", e);
		}
	}
Used to generate basic http posts for string and file contents

@author Glenn Renfro
@author Mark Pollack
spring-xd-test-fixtures/src/main/java/org/springframework/xd/test/generator/SimpleHttpGenerator.java