@Test
	public void testHttpPostAsciiText() throws InterruptedException, IOException {

		final HttpSource httpSource = newHttpSource();

		final String stringToPost = "hello";
		final FileSink fileSink = newFileSink().binary(true);

		final String streamName = generateStreamName();
		final String stream = String.format("%s | %s", httpSource, fileSink);

		logger.info("Creating Stream: " + stream);
		stream().create(streamName, stream);

		logger.info("Posting String: " + stringToPost);
		httpSource.ensureReady().postData(stringToPost);

		assertThat(fileSink, eventually(hasContentsThat(equalTo(stringToPost))));

	}
This test will create a stream using a HTTP source and a File Sink. Subsequently the "http post" shell command is
used to post a simple Ascii String to the admin server.
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractHttpCommandsTests.java