private void tailTweets(TailSource tailSource) throws Exception {
		for (int i = 1; i <= 3; i++) {
			String tweet = StreamUtils.copyToString(getClass().getResourceAsStream("/tweet" + i + ".txt"),
					Charset.forName("UTF-8"));
			tailSource.appendToFile(tweet);
		}
	}
Tests various metrics related sinks.

@author Eric Bottard
@author Ilayaperumal Gopinathan
@author David Turanski
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractMetricsTests.java