@Test
	public void testSimpleCounterImplicitName() throws Exception {
		String streamName = generateStreamName();
		httpSource = newHttpSource();

		// Create counter object, but don't use its toString
		// in stream def. Instead, we know it should be named like
		// the streamname.
		CounterSink counter = metrics().newCounterSink(streamName);
		stream().create(streamName, "%s | counter", httpSource);
		httpSource.postData("one");
		assertThat(counter, eventually(hasValue("1")));
	}
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