@Test
	public void testSimpleCounter() throws Exception {
		httpSource = newHttpSource();
		CounterSink counter = metrics().newCounterSink();
		stream().create(generateStreamName(), "%s | %s", httpSource, counter);

		httpSource.postData("one");
		httpSource.postData("one");
		httpSource.postData("two");

		assertThat(counter, eventually(exists()));
		assertThat(counter, eventually(hasValue("3")));
	}
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